test: make allocation assertion deterministic #1460
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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: .NET | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| inputs: | |
| publish-packages: | |
| description: Publish packages? | |
| type: boolean | |
| required: true | |
| jobs: | |
| modularpipeline: | |
| environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Pull Requests' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| # 10.0.x runs the pipeline; 8.0.x and 9.0.x provide runtimes for the multi-targeted test project | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: Run Pipeline | |
| run: dotnet run -c Release | |
| working-directory: "EnumerableAsyncProcessor.Pipeline" | |
| env: | |
| DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }} | |
| NuGet__ApiKey: ${{ github.ref == 'refs/heads/main' && secrets.NuGet__ApiKey || null }} | |
| PULL_REQUEST_BRANCH: ${{ github.event.pull_request.head.ref }} | |
| PUBLISH_PACKAGES: ${{ github.event.inputs.publish-packages }} |