Skip to content

chore(deps): bump the github-actions-dependencies group with 2 update… #184

chore(deps): bump the github-actions-dependencies group with 2 update…

chore(deps): bump the github-actions-dependencies group with 2 update… #184

Workflow file for this run

# 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@v6
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@v6
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@v6
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