-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 921 Bytes
/
build.yml
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
34
35
36
37
38
39
40
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_FRAMEWORK: net8.0
DOTNET_VERSION: 8.0.x
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🚧 Checkout
uses: actions/checkout@main
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work
- name: 🔨 Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: 🏗️ Run dotnet build
id: build
run: dotnet build -c release
- name: 🎨 Run dotnet format
id: format
run: dotnet format --verbosity diagnostic --verify-no-changes --no-restore
- name: 🧪 Run dotnet test
id: test
run: dotnet test -c release --no-restore