chore: add mergify auto-merge for dependabot PRs #408
Workflow file for this run
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: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| unit-tests: | |
| name: "Unit tests" | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.x | |
| - name: Run unit tests (windows) | |
| if: matrix.os == 'windows-latest' | |
| run: ./build.ps1 CodeCoverage | |
| - name: Run unit tests (ubuntu|macos) | |
| if: matrix.os != 'windows-latest' | |
| run: ./build.sh CodeCoverage | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ runner.os }}-artifacts | |
| path: | | |
| ./Artifacts/* | |
| ./TestResults/*.trx | |
| api-tests: | |
| name: "API tests" | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_NOLOGO: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - name: API checks | |
| run: ./build.sh ApiChecks | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: API-tests | |
| path: | | |
| ./Artifacts/* | |
| ./TestResults/*.trx | |
| benchmarks: | |
| name: "Benchmarks (${{ matrix.benchmark }})" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| benchmark: | |
| - ResolveBenchmarks | |
| - BuildBenchmarks | |
| - RealisticResolveBenchmarks | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_NOLOGO: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - name: Run benchmarks | |
| run: ./build.sh Benchmarks --benchmark-filter "*${{ matrix.benchmark }}*" | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Benchmarks-${{ matrix.benchmark }} | |
| path: | | |
| ./Artifacts/* | |
| if-no-files-found: ignore | |
| aot-sample: | |
| name: "AOT sample" | |
| runs-on: windows-latest | |
| env: | |
| DOTNET_NOLOGO: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - name: Publish and run the native-AOT sample | |
| run: ./build.ps1 AotSample | |
| web-sample: | |
| name: "Web sample" | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_NOLOGO: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - name: Run the web sample's smoke test | |
| run: ./build.sh WebSample | |
| static-code-analysis: | |
| name: "Static code analysis" | |
| if: ${{ github.actor != 'dependabot[bot]'&& github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} | |
| runs-on: ubuntu-latest | |
| env: | |
| REPORTGENERATOR_LICENSE: ${{ secrets.REPORTGENERATOR_LICENSE }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| DOTNET_NOLOGO: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.x | |
| - name: Run sonarcloud analysis | |
| run: ./build.sh CodeAnalysis | |
| publish-test-results: | |
| name: "Publish Tests Results" | |
| needs: [ api-tests, unit-tests ] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| if: always() | |
| steps: | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| path: artifacts | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| comment_mode: always | |
| files: "artifacts/**/**/*.trx" |