-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (25 loc) · 746 Bytes
/
Copy pathbuild.yml
File metadata and controls
33 lines (25 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Restore
run: dotnet restore CleanApiStarter.slnx
- name: Format
run: dotnet format CleanApiStarter.slnx --verify-no-changes --no-restore
- name: Build
run: dotnet build CleanApiStarter.slnx --no-restore --configuration Release /nr:false -v:minimal
- name: Test
run: dotnet test CleanApiStarter.slnx --no-build --configuration Release /nr:false -v:minimal