-
Notifications
You must be signed in to change notification settings - Fork 115
32 lines (30 loc) · 878 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
32
name: Build and test
on:
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
TEST_RESULTS: artifacts/tests
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- run: dotnet --info
- name: Build solution and run all tests
run: dotnet test --verbosity normal -l trx --results-directory '${{ env.TEST_RESULTS }}'
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: ${{ success() || failure() }}
with:
files: '${{ env.TEST_RESULTS }}/*.trx'
check_name: "Test results"
report_individual_runs: true
action_fail: true
time_unit: milliseconds
#ignore_runs: true
compare_to_earlier_commit: false