-
Notifications
You must be signed in to change notification settings - Fork 107
47 lines (38 loc) · 906 Bytes
/
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
name: Build
on:
push:
branches:
- '**'
- '!master'
paths-ignore:
- readme.md
- README.md
- CHANGELOG.md
pull_request:
branches:
- master
- develop
env:
UI_BUILD_REACT: 'app/'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14]
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: JS Build
env:
NODE_OPTIONS: '--max_old_space_size=2048'
run: |
npm --prefix ${{ env.UI_BUILD_REACT }} ci
npm --prefix ${{ env.UI_BUILD_REACT }} run lint
npm --prefix ${{ env.UI_BUILD_REACT }} run test:coverage
npm --prefix ${{ env.UI_BUILD_REACT }} run build
- name: Codecov report
uses: codecov/codecov-action@v1