-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (41 loc) · 1.1 KB
/
main.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
name: Lint / Build
on: push
jobs:
build:
name: Lint, Test, Build & Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 16
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: License check
run: npm run license-check
- name: Test
run: npm run test
- name: Build
run: |
export NODE_OPTIONS=--max_old_space_size=8192;
npm install
npm rebuild node-sass
npm run build
npm run build-lib
- name: Docker build
run: |
export NODE_OPTIONS=--max_old_space_size=8192;
docker build --no-cache .
#- name: i18n
# run: ./checki18n.sh