Performance optimisations #542
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: "PR Build and test" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths-ignore: | |
| - docs/** | |
| - '*.md' | |
| jobs: | |
| event_file: | |
| name: "Event File" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Upload | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: Event File | |
| path: ${{ github.event_path }} | |
| build-and-test: | |
| name: "Build and test" | |
| runs-on: [ self-hosted, type-cpx52, setup-docker, volume-cache-50GB ] | |
| strategy: | |
| matrix: | |
| dotnet-version: [ '8.0', '9.0', '10.0' ] | |
| env: | |
| NUGET_PACKAGES: "/mnt/cache/.nuget/packages" | |
| DOTNET_INSTALL_DIR: "/mnt/cache/.dotnet" | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v5 | |
| - | |
| name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0 | |
| 9.0 | |
| 10.0 | |
| - | |
| name: Login to Docker Hub | |
| if: ${{ github.event.pull_request.head.repo.fork == false }} | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USER }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - | |
| name: Run tests | |
| run: | | |
| dotnet test -c "Debug CI" -f net${{ matrix.dotnet-version }} | |
| - | |
| name: Upload Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: Test Results ${{ matrix.dotnet-version }} | |
| path: | | |
| test-results/**/*.xml | |
| test-results/**/*.trx | |
| test-results/**/*.json |