blob: 041f41f8e6744e5665cc7320950495290ae05f88 [file] [log] [blame]
name: C# Build
on:
workflow_call:
jobs:
build:
name: "${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
8.0.x
3.1.x
- name: Build artifacts
working-directory: ./csharp
run: |
dotnet build
dotnet tool install -g dotnet-format
dotnet-format --check
dotnet test -l "console;verbosity=detailed"