diff --git a/README.md b/README.md index 5a5ecd6..d5f2ad5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # AzureCosmosAction An extension that starts an Azure Cosmos Emulator as a step of a GitHub Actions Workflow + +## Example usage + +`uses: actions/azurecosmosaction@latest` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..56c6bfe --- /dev/null +++ b/action.yml @@ -0,0 +1,19 @@ +name: 'Azure Cosmos Emulator' +description: 'Start Azure Cosmos emulator' +author: 'Gutemberg Ribeiro (@galvesribeiro)' +branding: + icon: 'database' + color: 'gray-dark' +runs: + using: 'docker' + image: 'docker://microsoft/azure-cosmosdb-emulator' + args: + - '--name' + - 'cosmosdb' + - '--memory' + - '2GB' + - '--mount' + - 'type=bind,source=%LOCALAPPDATA%\,destination=C:\CosmosDB.Emulator\bind-mount' + - '-P' + - '--interactive' + - '--tty'