forked from garrytan/gstack
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (95 loc) · 3.47 KB
/
Copy pathgstack2-gate.yml
File metadata and controls
102 lines (95 loc) · 3.47 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
name: GStack 2 Gate
permissions:
contents: read
on:
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: gstack2-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
native:
name: Native ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-14, ubuntu-24.04, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 25
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.23.1
- name: Configure isolated test identity
run: |
git config --global user.email "gstack2-ci@example.invalid"
git config --global user.name "GStack 2 CI"
git config --global init.defaultBranch main
- run: bun install --frozen-lockfile
- name: Prove generation from an artifact-free checkout
run: bun run verify:gstack2-clean-generation
- name: Canonical six-skill, parity, state, and runtime gates
run: bun run test:gstack2
- name: Standard installer discovery
run: npx --yes skills@1.5.19 add . --list
installer-matrix:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.23.1
- run: bun install --frozen-lockfile
- run: bun run test:gstack2:install
installed-first-use:
name: Installed six-skill first use
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.23.1
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run gen:gstack2
- name: Prove consent-first capability setup continues after approval
run: bun test --timeout 30000 test/gstack2-installation.test.ts test/gstack2-skill-ux.test.ts
dev-container:
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: Build the declared development container
run: docker build --file .devcontainer/Dockerfile --tag gstack2-devcontainer .
- name: Run the GStack 2 gate inside the container
run: >-
docker run --rm
--volume "${{ github.workspace }}:/source:ro"
--workdir /source
gstack2-devcontainer
/source/scripts/gstack2/devcontainer-gate.sh /source
- name: Exercise a clean Linux runtime install inside the container
run: >-
docker run --rm
--volume "${{ github.workspace }}:/source:ro"
--workdir /source
gstack2-devcontainer
/source/scripts/gstack2/runtime-install-smoke.sh /source