-
Notifications
You must be signed in to change notification settings - Fork 44
45 lines (38 loc) · 1.05 KB
/
backend-checks-windows.yml
File metadata and controls
45 lines (38 loc) · 1.05 KB
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
41
42
43
44
45
name: Backend Checks (Windows)
permissions:
contents: read
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
backend-checks:
runs-on: windows-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v4
# Setup Node.js (needed for integrated frontend build in dotnet build)
- uses: voidzero-dev/setup-vp@v1
# Setup .NET
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
# Update workloads
- name: Update .NET workloads
run: dotnet workload update
# Restore packages
- name: Restore packages
run: dotnet restore
# Check code formatting
- name: Check code formatting
run: dotnet format --verify-no-changes
# Build solution
- name: Build solution
run: dotnet build --configuration Release
# Run tests
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal