-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (31 loc) · 778 Bytes
/
ci.yml
File metadata and controls
37 lines (31 loc) · 778 Bytes
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
name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.x
9.x
10.x
- name: dotnet build
run: dotnet build
- name: dotnet test
run: dotnet test --no-build --no-restore --logger "junit;LogFilePath=unit-tests.xml"
- name: publish test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/*-tests.xml"
check_name: "Unit Test Results"