-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.04 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: .NET Core Build with Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
# use ubuntu for more build minutes
runs-on: ubuntu-latest
# use release mode for all steps
env:
config: 'Debug'
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: |
cd src
dotnet restore
- name: Build
run: |
cd src
dotnet build --configuration $config --no-restore
- name: Test
run: |
cd test-database
docker compose up -d
cd ..
dotnet test -l "trx;LogFileName=test-results.trx" ./src/MartenDotNetTestTemplate.Tests/
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: .NET Tests
path: "**/test-results.trx"
reporter: dotnet-trx
fail-on-error: true