Skip to content

run build, test and format on all pull requests to main #5

run build, test and format on all pull requests to main

run build, test and format on all pull requests to main #5

name: Verify pull request
on:
pull_request:
branches: [ "main" ]
jobs:
build:
name: Verify pull request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core (version from global.json)
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: dotnet build
run: dotnet build --configuration Release
- name: dotnet test
run: dotnet test --configuration Release --no-build
- name: dotnet format
run: dotnet format -v detailed --verify-no-changes