Skip to content

Enable .NET analyzers and fix issues #77

Enable .NET analyzers and fix issues

Enable .NET analyzers and fix issues #77

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update tzdata on Linux
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y tzdata
- name: Install .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
9.0.x
- name: Restore
run: dotnet restore --nologo
- name: Build
run: dotnet build -c Release --nologo --no-restore
- name: Test
run: dotnet test -c Release --nologo --no-build -l GitHubActions -l "trx;LogFilePrefix=testresults_${{ runner.os }}"