-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 1.02 KB
/
Copy pathci.yml
File metadata and controls
42 lines (32 loc) · 1.02 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
name: SquibView CI
on:
push:
branches: [ main ] # Or master, or your default branch
pull_request:
branches: [ main ] # Or master, or your default branch
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [18.x] # You can add other versions like 16.x, 20.x if needed
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Run unit tests
run: npm run test # Runs 'jest --config jest.config.cjs --coverage'
timeout-minutes: 3
# E2E tests are run locally only (requires Chrome/Puppeteer setup)
# Commented out to simplify CI - E2E tests verified locally before push
# - name: Run E2E tests
# run: npm run test:e2e