A minimal .NET 10 class library with xUnit tests.
The workflow lives at .github/workflows/ci.yml and declares runs-on: ubuntu-latest. Both are GitHub defaults, unchanged. Nothing in this repository was renamed or rewritten to run here:
.github/workflows/is read directly. There is no.forgejo/directory.ubuntu-latestroutes to a Codebahn runner in Paris.actions/checkoutandactions/setup-dotnetresolve from GitHub automatically.
On every push and pull request:
- Sets up the .NET 10 SDK
- Restores NuGet dependencies
- Builds the solution
- Runs xUnit tests
TreatWarningsAsErrors is on, so a build warning fails CI.
Need more than the 3 GB default? Set runs-on: codebahn-medium for 7 GB. See CI runners.
dotnet restore
dotnet build
dotnet test