-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 861 Bytes
/
ci.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
name: Continuous Integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Inspect Code
run: >
dotnet tool install -g JetBrains.ReSharper.GlobalTools &&
jb inspectcode --no-build --swea --output="inspectcodereport.xml" --verbosity=WARN -f="xml" "Numerous.sln"
- name: Inspection Report
run: >
dotnet tool install -g nvika &&
nvika parsereport "inspectcodereport.xml" --treatwarningsaserrors
- name: Test
run: dotnet test --no-build --verbosity normal