chore(deps): bump the github-actions-dependencies group with 2 updates #171
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
| # workflows/ci.yml | |
| # | |
| # CI | |
| # Run linting and test matrix across supported .NET versions. | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore .NET tools | |
| run: dotnet tool restore | |
| - name: CSharpier format check | |
| run: dotnet csharpier check . | |
| - name: Restore | |
| run: dotnet restore build.slnf | |
| - name: Verify build (no warnings) | |
| run: dotnet build build.slnf --configuration Release --no-restore -warnaserror | |
| build: | |
| name: .NET ${{ matrix.framework }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - dotnet: "8.0.x" | |
| framework: "net8.0" | |
| - dotnet: "9.0.x" | |
| framework: "net9.0" | |
| - dotnet: "10.0.x" | |
| framework: "net10.0" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet }} | |
| - name: Restore | |
| run: dotnet restore build.slnf | |
| - name: Build | |
| run: dotnet build build.slnf --configuration Release --framework ${{ matrix.framework }} --no-restore | |
| - name: Test | |
| run: | | |
| dotnet test \ | |
| --no-build \ | |
| --configuration Release \ | |
| --framework ${{ matrix.framework }} \ | |
| --results-directory TestResults/${{ matrix.framework }} \ | |
| --coverlet \ | |
| --coverlet-output-format cobertura | |
| - name: Run Examples | |
| run: scripts/run_examples.sh | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| directory: TestResults/${{ matrix.framework }} | |
| flags: ${{ matrix.framework }} | |
| fail_ci_if_error: false | |
| verbose: true | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| windows-smoke: | |
| name: Windows Smoke | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore build.slnf -p:TargetFramework=net10.0 | |
| - name: Build | |
| run: dotnet build build.slnf --configuration Release --framework net10.0 --no-restore | |
| check-api-coverage: | |
| name: Check API Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Check API coverage | |
| run: uv run --with json5 scripts/check_api_coverage.py |