File tree 2 files changed +43
-18
lines changed
2 files changed +43
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Setup Action'
2
+ description : ' Checkouts the repo, sets up node and installs dependencies'
3
+
4
+ on :
5
+ workflow_call :
6
+
7
+ jobs :
8
+ setup :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout Repository
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Set up Node.js
15
+ uses : actions/setup-node@v4
16
+ with :
17
+ node-version : ' 22'
18
+
19
+ - name : Cache dependencies
20
+ id : cache
21
+ uses : actions/cache@v4
22
+ with :
23
+ path : ./node_modules
24
+ key : modules-${{ hashFiles('package-lock.json') }}
25
+
26
+ - name : Install dependencies
27
+ if : steps.cache.outputs.cache-hit != 'true'
28
+ run : npm ci
Original file line number Diff line number Diff line change 1
- name : Static Checks
1
+ name : " Static Checks"
2
+
2
3
on :
3
- workflow_call :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - " **"
10
+
4
11
jobs :
5
12
setup :
6
- name : Setup Node.js
7
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v2
8
- with :
9
- node-version : ' 22'
13
+ name : Setup Dependencies
14
+ uses : ./.github/action/setup.yml
10
15
11
16
lint :
12
17
name : ESLint Check
13
18
runs-on : ubuntu-latest
19
+ needs : setup
14
20
steps :
15
- - name : Checkout Repository
16
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17
-
18
- - name : Run linter
21
+ - name : Run Linter
19
22
run : npm run lint
20
23
21
24
tsc :
22
25
name : TS Types Check
23
26
runs-on : ubuntu-latest
27
+ needs : setup
24
28
steps :
25
- - name : Checkout Repository
26
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27
-
28
29
- name : Run Tsc
29
30
run : npm run type-check
30
31
31
32
build :
32
33
name : Build App Check
33
34
runs-on : ubuntu-latest
34
- env :
35
- NODE_OPTIONS : " --max_old_space_size=4096"
35
+ needs : setup
36
36
steps :
37
- - name : Checkout Repository
38
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
39
-
40
37
- name : Build App
41
38
run : npm run build
You can’t perform that action at this time.
0 commit comments