Target net8.0 in test project #281
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: ci | |
on: | |
push: | |
branches: [main] | |
tags-ignore: | |
- '*' | |
pull_request: | |
branches: [main] | |
tags-ignore: | |
- '*' | |
paths-ignore: | |
- '**.md' | |
- '.editorconfig' | |
- 'docs/**' | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
jobs: | |
build: | |
name: ${{ matrix.platform }} build | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Build and test | |
run: | | |
dotnet restore | |
dotnet build --configuration Release --no-restore | |
dotnet test --configuration Release --verbosity minimal --no-build |