Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Commit 9e97dcb

Browse files
committed
ci: CI workflow to test buildability
1 parent f27a94f commit 9e97dcb

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI — build
2+
3+
# Run on pushes and PRs to verify the project is buildable (npm + webpack)
4+
on:
5+
push:
6+
branches: ["**"]
7+
pull_request:
8+
branches: ["**"]
9+
10+
jobs:
11+
build:
12+
name: Build (Node ${{ matrix.node-version }})
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: ["18.x", "20.x"]
17+
fail-fast: false
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "npm"
28+
29+
- name: Show node / npm versions
30+
run: |
31+
node --version
32+
npm --version
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
env:
37+
CI: true
38+
39+
- name: Run build (webpack)
40+
run: npm run build
41+
env:
42+
CI: true
43+
44+
- name: Show build output (if any)
45+
run: |
46+
echo "Present files at repo root:"
47+
ls -la
48+
echo "dist/ (if produced):"
49+
ls -la dist || echo "dist not present"

0 commit comments

Comments
 (0)