diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..67125bf --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -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