-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (57 loc) · 2.07 KB
/
Copy pathtracey.yml
File metadata and controls
69 lines (57 loc) · 2.07 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
name: Tracey
on:
workflow_call:
jobs:
tracey:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ runner.os }}-cargo-tracey-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-tracey-
- name: Install Tracey
run: |
cargo install tracey
tracey --help | head -5
- name: Generate Tracey Rules
run: |
echo "Extracting rules from specifications..."
tracey --config .config/tracey/config.kdl rules specs/web_app/*.md > specs/web_app/_rules.json || true
echo "Rules file generated at specs/web_app/_rules.json"
- name: Run Tracey Report
run: |
echo "Generating Tracey coverage report..."
# Generate traceability matrix reports
echo "Generating HTML and JSON reports..."
tracey matrix --config .config/tracey/config.kdl -f html > tracey-report.html
tracey matrix --config .config/tracey/config.kdl -f json > tracey-report.json
# Also generate text summary for console output
echo "Coverage Summary:"
tracey -v | grep -E 'Coverage|rules' | head -5 || true
# Check report sizes
HTML_SIZE=$(wc -c < tracey-report.html)
JSON_SIZE=$(wc -c < tracey-report.json)
echo "✓ Generated HTML report: $HTML_SIZE bytes"
echo "✓ Generated JSON report: $JSON_SIZE bytes"
ls -la tracey-report.*
continue-on-error: true
- name: Upload Tracey Full Report
if: always()
uses: actions/upload-artifact@v4
with:
name: tracey-report-complete
path: |
tracey-report.html
tracey-report.json
if-no-files-found: ignore