Sometimes when only building the API client, the target GenerateOpenA… #112
This file contains 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: .NET | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] | |
dotnet: ['8.x'] | |
quality: ['ga'] | |
name: Build & Test using ${{ matrix.dotnet }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET ${{ matrix.dotnet }} | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
dotnet-quality: ${{ matrix.quality }} | |
cache: true | |
cache-dependency-path: '**/packages.lock.json' | |
- name: Restore tooling | |
run: dotnet tool restore | |
- name: Restore dependencies | |
run: dotnet restore ${{ matrix.quality == 'ga' && '--locked-mode' || '' }} | |
- name: Check code style | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: dotnet format style --no-restore --verify-no-changes --verbosity normal | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal |