-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (47 loc) · 1.21 KB
/
on_pr_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
45
46
47
48
49
50
51
52
53
54
name: Test build
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
branches:
- master
- dev
paths-ignore:
- '**.md'
- '**.yml'
jobs:
test_build:
name: Test build
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}_on_pr_test_build
cancel-in-progress: true
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Use Node.js (${{ vars.NODE_VERSION }})
uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
- name: Install dependencies
run: |
npm ci --no-audit --no-fund --loglevel=error --include=dev
- name: Ava tests
run: |
npm test
- name: ESLint
run: |
npm run lint
- name: Package client
run: |
export NODE_OPTIONS="--max-old-space-size=8192"
npm run package:client
env:
DEBUG: webpack*
NODE_ENV: production
- name: Build server
run: |
npm run build:server
env:
NODE_ENV: production