-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (42 loc) · 1020 Bytes
/
ci.yml
File metadata and controls
52 lines (42 loc) · 1020 Bytes
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
name: "CI"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
clean-code-stage:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout
uses: actions/checkout@v5
- uses: ./.github/composite_actions/initial_setup
- name: audit
timeout-minutes: 4
run: yarn npm audit
continue-on-error: true
- name: lint
timeout-minutes: 4
run: yarn lint
- name: format
timeout-minutes: 4
run: yarn format
clean-build-stage:
runs-on: ubuntu-latest
needs: clean-code-stage
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout
uses: actions/checkout@v5
- uses: ./.github/composite_actions/initial_setup
- name: Build
run: yarn build
- name: Test
run: yarn test