-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.94 KB
/
Copy pathtests.yml
File metadata and controls
53 lines (48 loc) · 1.94 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
name: Tests
# Der kanonische Check des Projekts (Governance-Tier 2, D-091).
#
# Nova.SimRunner.Tests kompiliert dieselben Core-/Simulation-Quellen wie der
# Unity-Host (siehe csproj: Compile Include ..\..\Assets\_Project\Scripts\...)
# und braucht deshalb keine Unity-Lizenz. Damit laufen die Simulationstests
# erstmals automatisch statt nur auf einem Laptop.
#
# Bewusst ohne Pfadfilter: Ein uebersprungener Job zaehlt in der Branch
# Protection nicht als bestanden, und ein Required Check, der manchmal fehlt,
# ist schlimmer als eine Minute Laufzeit.
#
# Unity-EditMode-Tests laufen hier nicht (keine CI-Lizenz). Wer die
# Praesentationsschicht anfasst, fuehrt sie lokal aus - siehe CONTRIBUTING.md.
on:
pull_request:
push:
branches: [main]
# Handstart auf beliebigem Branch: gh workflow run Tests --ref <branch>
# Ohne diesen Trigger gibt es nur PR und main - waehrend der
# Actions-Stoerung am 2026-08-06 legte GitHub fuer fuenf Pushes gar keine
# Laeufe an, und es gab keinen Weg, einen nachzuziehen.
workflow_dispatch:
permissions:
contents: read
concurrency:
group: tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
# Action und SDK sind reproduzierbar gepinnt: die Action auf ihren
# Commit, die SDK-Version in global.json (8.0.318, rollForward disable).
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
global-json-file: global.json
- name: Restore
run: dotnet restore tools/Nova.SimRunner.Tests/Nova.SimRunner.Tests.csproj
- name: Test
run: >
dotnet test tools/Nova.SimRunner.Tests/Nova.SimRunner.Tests.csproj
-c Release --no-restore --nologo
--logger "console;verbosity=normal"