Skip to content

Sometimes when only building the API client, the target GenerateOpenA… #112

Sometimes when only building the API client, the target GenerateOpenA…

Sometimes when only building the API client, the target GenerateOpenA… #112

Workflow file for this run

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