Commit 0411a49 1 parent 8ff98c9 commit 0411a49 Copy full SHA for 0411a49
File tree 1 file changed +15
-34
lines changed
1 file changed +15
-34
lines changed Original file line number Diff line number Diff line change 12
12
- next
13
13
14
14
env :
15
- NODE_VERSION : lts/*
15
+ NODE_VERSION : 22.11.0
16
+
17
+
18
+ permissions :
19
+ actions : read
20
+ contents : read
16
21
17
22
jobs :
23
+ setup :
24
+ uses : the-nexim/actions/.github/workflows/javascript-project-setup.yaml@next
25
+ with :
26
+ node_version : ${{ env.NODE_VERSION }}
27
+
18
28
main :
19
29
name : Build & Lint & Test
20
30
runs-on : ubuntu-latest
21
31
22
- permissions :
23
- contents : read
24
-
25
32
steps :
26
- - name : ⤵️ Checkout repository
27
- uses : actions/checkout@v4
28
-
29
- - name : 🏗 Setup nodejs
30
- uses : actions/setup-node@v4
31
- with :
32
- node-version : ${{ env.NODE_VERSION }}
33
-
34
- - name : 🏗 Setup nodejs corepack
35
- run : corepack enable
36
-
37
- - name : 🏗 Get yarn config
38
- id : yarn_config
39
- run : echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
40
-
41
- - name : 🏗 Cache Layer
42
- uses : actions/cache@v4
43
- with :
44
- path : ${{ steps.yarn_config.outputs.cache_folder }}
45
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
46
- restore-keys : |
47
- ${{ runner.os }}-yarn-
48
-
49
- - name : 🏗 Install dependencies
50
- run : yarn install --immutable
51
-
52
- - name : 🏗 Cache Wireit
33
+ - name : 📦 Cache Wireit
53
34
uses : google/wireit@setup-github-actions-caching/v2
54
35
55
- - name : 🚀 Build Typescript
36
+ - name : 🏗️ Build Typescript
56
37
run : yarn build
57
38
env :
58
39
WIREIT_LOGGER : metrics
59
40
60
- - name : 🚀 Run ESLint
41
+ - name : 🧹 Run ESLint
61
42
run : yarn lint
62
43
env :
63
44
WIREIT_LOGGER : metrics
64
45
65
- - name : 🚀 Run Test
46
+ - name : 🧪 Run Test
66
47
run : yarn test
67
48
env :
68
49
WIREIT_LOGGER : metrics
You can’t perform that action at this time.
0 commit comments