-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.16 KB
/
Copy pathdotnetcore.yml
File metadata and controls
39 lines (39 loc) · 1.16 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
name: Build and Test
on: [push, pull_request]
jobs:
Whitespace_Check:
name: Whitespace Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10
dotnet-quality: ga
- name: Restore Dependencies
run: dotnet restore
- name: Whitespace Check
run: dotnet format whitespace --verify-no-changes --no-restore
Build_and_Test:
strategy:
matrix:
# Debug and Release might be different due to conditional compilation, so validate both.
configuration: [Debug, Release]
name: Build and Test (${{ matrix.configuration }})
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10
dotnet-quality: ga
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore
- name: Test
run: dotnet test --configuration ${{ matrix.configuration }} --no-build --nologo