Skip to content

Clean up

Clean up #105

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main", "rm/next" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build with dotnet
run: dotnet build --no-restore
- name: Test with dotnet
run: dotnet test --no-build --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
- name: Upload dotnet test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: dotnet-test-results-${{ matrix.dotnet-version }}
path: TestResults-${{ matrix.dotnet-version }}
- name: Check format
if: ${{ always() }}
run: dotnet format style --verify-no-changes --report "FormatReport-${{ matrix.dotnet-version }}"
- name: Upload dotnet test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: dotnet-format-report-${{ matrix.dotnet-version }}
path: FormatReport-${{ matrix.dotnet-version }}