-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (34 loc) · 1.05 KB
/
dotnet.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
41
42
43
44
45
name: 🦖 .NET Checks
on:
push:
branches-ignore:
- godot3
pull_request:
branches-ignore:
- godot3
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: ["8.0.x"]
name: .NET ${{ matrix.dotnet }}
env:
DemoProj: Dear ImGui for Godot Demo.csproj
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Modify .editorconfig
run: |
sed -i "s:dotnet_analyzer_diagnostic.severity = warning:dotnet_analyzer_diagnostic.severity = error:" .editorconfig
- name: Restore dependencies
run: dotnet restore
- name: Format
run: dotnet format --no-restore --verify-no-changes --verbosity detailed "${{ env.DemoProj }}" || (dotnet format --no-restore "${{ env.DemoProj }}" && git diff --color && exit 1)
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal