-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.1 KB
/
lint-build-test.yaml
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
name: Lint, Build & Test
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.head_ref || github.ref_name }}-build-test-scan
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
name: Lint, Build & Test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Install
run: yarn install:all
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Lint
run: yarn run lint
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Test
run: yarn run test
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Build
run: yarn run build
env:
NODE_OPTIONS: '--max-old-space-size=4096'