Skip to content

Add CI workflow

Add CI workflow #1

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore SecureCodingExamples.sln
- name: Build
run: dotnet build SecureCodingExamples.sln --configuration Release --no-restore
- name: Test
run: dotnet test SecureCodingExamples.sln --configuration Release --no-build