-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (81 loc) · 2.72 KB
/
Copy pathpull-request.yml
File metadata and controls
105 lines (81 loc) · 2.72 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
102
103
104
105
name: 🧪 Test PR
'on': pull_request
permissions:
contents: read
pull-requests: write
jobs:
test:
name: 🛠️ Validate & Package
runs-on: ubuntu-latest
steps:
- name: 🗜️ Checkout
uses: actions/checkout@v7
- name: 🗜️ Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
- name: 🗜️ Setup Bun
uses: oven-sh/setup-bun@v2
- name: 🗜️ Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- name: 🛠️ Install dependencies
uses: ./.github/actions/cached-deps
- name: 🧹 Clean
run: bun run clean
- name: 📦 Validate package
run: bun run package:validate
- name: 🌐 Validate portal
run: bun run portal:validate:coverage
- name: 📊 Report portal coverage
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ./.github/actions/report-pr
with:
coverage-file: coverage/portal/cobertura-coverage.xml
report-name: Documentation portal (Angular)
comment-header: portal-coverage-report
- name: 🛠️ Build coverage tests
run: bun run coverage:build
- name: 🧪 Generate coverage
uses: ./.github/actions/generate-coverage
- name: 📊 Report native coverage
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ./.github/actions/report-pr
with:
coverage-file: coverage/merged/kcov-merged/cobertura.xml
report-name: Native CLI (Zig)
comment-header: native-coverage-report
- name: 📦 Build cross-platform package
run: bun run package
- name: 🔎 Verify artifact layout
uses: ./.github/actions/verify-artifact-layout
- name: 🏁 Benchmark performance gate
run: bun run benchmark
package-smoke-test:
name: 📦 Package Smoke Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: 🗜️ Checkout
uses: actions/checkout@v7
- name: 🗜️ Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- name: 🗜️ Setup Bun
uses: oven-sh/setup-bun@v2
- name: 🗜️ Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
- name: 🛠️ Install dependencies
uses: ./.github/actions/cached-deps
with:
caching: 'false'
- name: 📦 Build and smoke-test cross-platform package
run: bun run package