How to run Azure Storage unit tests in CI
PreviousCode-less redirection with serverless Azure FunctionsNextHow to skip steps or jobs in GitHub Actions for PRs from forks
Last updated
Last updated
If you have tests that need to exercise Blob, Queue or Table storage from Azure Storage, you can use (v3) in CI, which can be configured for GitHub Actions as follows:
The first line will install it, and the second will start it in a background process. Tests will need to use CloudStorageAccount.DevelopmentStorageAccount
to access the locally running instance automatically. Note that this is compatible with the older Azure Storage Emulator included with the Azure SDK with Visual Studio, so no changes are needed between local test runs and CI.
You can see this in action in the following run: which is running on all supported .NET platforms via the workflow definition at .