-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (41 loc) · 953 Bytes
/
test_build.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
name: Test/Build
concurrency:
group: testbuild-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
merge_group: {}
jobs:
test_build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up NodeJS
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: npm
cache-dependency-path: package-lock.json
- name: Set up Emscripten
uses: mymindstorm/setup-emsdk@v14
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run testOnly
- run: cp LICENSE dist/
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/