-
Notifications
You must be signed in to change notification settings - Fork 746
61 lines (50 loc) · 1.67 KB
/
Copy pathtest-template.yml
File metadata and controls
61 lines (50 loc) · 1.67 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test RobustToolboxTemplate against engine
on:
push:
branches: [master]
merge_group:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name != 'merge_group' }}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out template
uses: actions/checkout@v4.2.2
with:
repository: space-wizards/RobustToolboxTemplate
path: template
- name: Check out engine version
uses: actions/checkout@v4.2.2
with:
path: template/RobustToolbox
submodules: recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 10.0.x
- name: Replace global.json
run: cp RobustToolbox/global.json .
working-directory: template
- name: Install dependencies
run: dotnet restore
working-directory: template
- name: Build
run: dotnet build --no-restore /p:WarningsAsErrors=nullable
working-directory: template
- name: Run tests
shell: pwsh
run: dotnet test --no-build -- NUnit.ConsoleOut=0 NUnit.TestOutputXml="logs" NUnit.WorkDirectory="$(pwd)/test_results"
working-directory: template
- name: Archive NUnit3 test results.
if: always()
uses: actions/upload-artifact@v4
with:
name: nunit3-results-template
path: template/test_results/*
retention-days: 7