-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (38 loc) · 935 Bytes
/
test.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: Build
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
permissions:
checks: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
8.x
- name: Build
run: ./build.sh build
shell: bash
- name: Test
run: dotnet test -c Release --logger:"junit;LogFilePath=$(pwd)/output/test-results/junit-{assembly}-{framework}-test-results.xml" --no-build -f net8.0 --nologo
shell: bash
- name: Test Results
uses: mikepenz/action-junit-report@v4
if: always()
with:
fail_on_failure: true
require_tests: true
report_paths: '**/output/test-results/junit-*.xml'