Skip to content

Commit 499518f

Browse files
committed
ci(log): add e2e and manifest jobs reusing build artifact
Add two jobs to the quality gates workflow: - e2e: downloads the dist artifact from the build job and runs test:e2e:run - manifest: downloads the dist artifact and runs test:manifest
1 parent c647331 commit 499518f

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/quality-gates.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,71 @@ jobs:
122122
- name: Build
123123
run: node --run build
124124

125+
- name: Upload build artifact
126+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
127+
with:
128+
name: dist
129+
path: dist
130+
retention-days: 1
131+
132+
e2e:
133+
name: E2E
134+
runs-on: ubuntu-24.04-arm
135+
timeout-minutes: 2
136+
needs: build
137+
138+
steps:
139+
- name: Checkout
140+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
141+
142+
- name: Setup Node
143+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
144+
with:
145+
node-version: 24
146+
registry-url: "https://registry.npmjs.org"
147+
cache: npm
148+
149+
- name: Install Dependencies
150+
run: npm ci --no-fund --no-audit
151+
152+
- name: Download build artifact
153+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
154+
with:
155+
name: dist
156+
path: dist
157+
158+
- name: E2E
159+
run: node --run test:e2e:run
160+
161+
manifest:
162+
name: Manifest
163+
runs-on: ubuntu-24.04-arm
164+
timeout-minutes: 2
165+
needs: build
166+
167+
steps:
168+
- name: Checkout
169+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
170+
171+
- name: Setup Node
172+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
173+
with:
174+
node-version: 24
175+
registry-url: "https://registry.npmjs.org"
176+
cache: npm
177+
178+
- name: Install Dependencies
179+
run: npm ci --no-fund --no-audit
180+
181+
- name: Download build artifact
182+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
183+
with:
184+
name: dist
185+
path: dist
186+
187+
- name: Manifest
188+
run: node --run test:manifest
189+
125190
test:
126191
name: Test
127192
runs-on: ubuntu-24.04-arm

0 commit comments

Comments
 (0)