first commit #1
This file contains hidden or 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, master ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '9.0.x' | |
- name: Install dotnet-format | |
run: | | |
dotnet tool install --global dotnet-format --version 8.0.1 | |
echo "${HOME}/.dotnet/tools" >> $GITHUB_PATH | |
- name: Restore | |
run: dotnet restore | |
- name: Verify formatting | |
run: dotnet-format --verify-no-changes --severity warn | |
- name: Build | |
run: dotnet build --configuration Release --no-restore -warnaserror | |
- name: Test | |
run: dotnet test --configuration Release --no-build --collect "XPlat Code Coverage" |