-
Notifications
You must be signed in to change notification settings - Fork 50
31 lines (29 loc) · 915 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: Backend Build and Test
on:
pull_request:
branches:
- main
paths:
- 'Src/Witsml/**'
- 'Src/WitsmlExplorer.Api/**'
- 'Src/WitsmlExplorer.Console/**'
- 'Tests/**'
permissions: {}
jobs:
backend:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup .NET 8
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build /warnaserror --configuration Release
- name: Install dotnet format
run: dotnet tool update --global dotnet-format
- name: Run dotnet format
run: dotnet format --verify-no-changes --no-restore
- name: Test
run: dotnet test --configuration Release --logger "console;verbosity=detailed"