-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 953 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (39 loc) · 953 Bytes
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: CI
on:
push:
branches: [main]
# Validate PRs (incl. Dependabot) before merge — but NOT arbitrary branch
# pushes, so only main and PRs targeting it run CI.
pull_request:
branches: [main]
jobs:
server:
name: Server tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
cache-dependency-path: server/package-lock.json
- run: npm ci
- run: npm test
client:
name: Client build
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
cache-dependency-path: client/package-lock.json
- run: npm ci
- run: npm run build