-
Notifications
You must be signed in to change notification settings - Fork 1
102 lines (82 loc) · 2.73 KB
/
ci.yml
File metadata and controls
102 lines (82 loc) · 2.73 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
dotnet-build-test:
runs-on: ubuntu-latest
timeout-minutes: 30
name: .NET Build and Test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore libs/ironconfig-dotnet/IronConfig.sln
- name: Build
run: dotnet build libs/ironconfig-dotnet/IronConfig.sln -c Release --no-restore
- name: Run tests
run: dotnet test libs/ironconfig-dotnet/IronConfig.sln -c Release --no-build --logger "console;verbosity=normal"
native-build-test:
runs-on: ubuntu-latest
timeout-minutes: 30
name: Native Build and Test
steps:
- uses: actions/checkout@v4
- name: Configure native build
run: cmake -S native -B native/build
- name: Build native
run: cmake --build native/build --config Release
- name: Run native tests
run: ctest --test-dir native/build -C Release --output-on-failure
docs-truth-gate:
runs-on: ubuntu-latest
timeout-minutes: 10
name: Enforce Documentation Truth Gate
steps:
- uses: actions/checkout@v4
- name: Verify docs truth (normative claims)
run: |
chmod +x ./tools/docs_truth_gate/verify_docs_truth.sh
./tools/docs_truth_gate/verify_docs_truth.sh docs/
- name: Report
if: success()
run: |
echo "[OK] Documentation Truth Gate PASSED"
echo "All normative claims in docs/ are verifiable"
- name: Report failure
if: failure()
run: |
echo "[FAIL] Documentation Truth Gate FAILED"
echo "Found normative claims without evidence references"
exit 1
summary:
runs-on: ubuntu-latest
timeout-minutes: 5
name: CI Summary
needs: [dotnet-build-test, native-build-test, docs-truth-gate]
if: always()
steps:
- name: Check results
run: |
echo ".NET Build and Test: ${{ needs.dotnet-build-test.result }}"
echo "Native Build and Test: ${{ needs.native-build-test.result }}"
echo "Docs Truth Gate: ${{ needs.docs-truth-gate.result }}"
if [[ "${{ needs.dotnet-build-test.result }}" != "success" ]] || \
[[ "${{ needs.native-build-test.result }}" != "success" ]] || \
[[ "${{ needs.docs-truth-gate.result }}" != "success" ]]; then
echo "CI FAILED"
exit 1
fi
echo "[OK] All CI checks passed"