Build and test on PRs (#2)

This commit is contained in:
Matthew Shapiro
2025-10-17 23:53:03 -04:00
committed by GitHub
parent 80544f5d7d
commit 93045f1324
+30
View File
@@ -0,0 +1,30 @@
name: .NET Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: "9.0.x"
- name: Restore dependencies
run: dotnet restore src/Dotnet6502.sln
- name: Build
run: dotnet build src/ --no-restore --configuration Release
- name: Test
run: dotnet test src/ --no-build --configuration Release --verbosity normal