-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (45 loc) · 1.13 KB
/
ci.yml
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
name: CI
on: push
jobs:
build-module:
name: Build & test npm module
runs-on: ubuntu-latest
container: httptoolkit/act-build-base:v2.0.0
defaults:
run:
working-directory: module
steps:
- uses: actions/checkout@v3
# Install Node 14
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm ci
# Just check the code compiles
- run: npm run build
build-app:
name: Build & test app
runs-on: ubuntu-latest
container: httptoolkit/act-build-base:v2.0.0
steps:
- uses: actions/checkout@v3
# Install Node 14
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install -g [email protected]
- name: App NPM CI
run: npm ci
- name: Module NPM CI
run: npm ci
working-directory: module
# Build & test
- run: npm test
env:
VERSION: ${{ github.sha }}
NODE_ENV: production
- run: npm run build
env:
VERSION: ${{ github.sha }}
NODE_ENV: production
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}