Lightweight Scale Controller package for Azure Storage backend (#3357) #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Functions Scale Tests Azure Storage | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| paths-ignore: [ '**.md' ] | |
| pull_request: | |
| branches: | |
| - '*' | |
| paths-ignore: [ '**.md' ] | |
| env: | |
| solution: WebJobs.Extensions.DurableTask.sln | |
| config: Release | |
| AzureWebJobsStorage: UseDevelopmentStorage=true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| global-json-file: global.json | |
| - name: Restore dependencies | |
| run: dotnet restore $solution | |
| - name: Build | |
| run: dotnet build $solution -c $config | |
| - name: Set up Node.js (needed for Azurite) | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.x' | |
| - name: Install Azurite | |
| run: npm install -g azurite | |
| - name: Run Scale tests | |
| run : | | |
| azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 & | |
| AZURITE_PID=$! | |
| trap "kill $AZURITE_PID || true" EXIT | |
| # Wait for Azurite to be ready | |
| for i in {1..30}; do | |
| if nc -z 127.0.0.1 10000; then | |
| echo "Azurite is ready" | |
| break | |
| fi | |
| echo "Azurite is not ready, waiting ($i/30)" | |
| sleep 1 | |
| done | |
| # Run tests | |
| dotnet test ./test/ScaleTests/Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionsScale.Tests.csproj -c $config --no-build --verbosity normal |