8
8
FOLDER_PATH_STORYBOOK_BUILD : ./build-storybook-static
9
9
10
10
jobs :
11
- setup :
12
- name : Setup 🔧
11
+ build :
12
+ name : Build 🏗️
13
13
runs-on : ubuntu-latest
14
- outputs :
15
- cache-hit : ${{ steps.cache_dependencies.outputs.cache-hit }}
16
-
17
14
steps :
18
15
- name : Checkout 🛎️
19
16
uses : actions/checkout@v4
@@ -33,35 +30,81 @@ jobs:
33
30
if : steps.cache_dependencies.outputs.cache-hit != 'true'
34
31
run : npm ci
35
32
36
- build :
37
- name : Build 🏗️
38
- runs-on : ubuntu-latest
39
- needs : setup
40
- steps :
41
33
- name : Build 🏗️
42
34
run : npm run build
43
35
44
36
lint :
45
37
name : Lint ✅
46
38
runs-on : ubuntu-latest
47
- needs : setup
48
39
steps :
40
+ - name : Checkout 🛎️
41
+ uses : actions/checkout@v4
42
+
43
+ - uses : actions/setup-node@v4
44
+ with :
45
+ node-version : ${{ env.NODE_VERSION }}
46
+
47
+ - name : Cache dependencies ⚡
48
+ id : cache_dependencies
49
+ uses : actions/cache@v4
50
+ with :
51
+ path : node_modules
52
+ key : node-modules-${{ hashFiles('package-lock.json') }}
53
+
54
+ - name : Install dependencies 🔧
55
+ if : steps.cache_dependencies.outputs.cache-hit != 'true'
56
+ run : npm ci
57
+
49
58
- name : Lint ✅
50
59
run : npm run lint
51
60
52
61
tsc :
53
62
name : TypeScript Compiler 🔎
54
63
runs-on : ubuntu-latest
55
- needs : setup
56
64
steps :
65
+ - name : Checkout 🛎️
66
+ uses : actions/checkout@v4
67
+
68
+ - uses : actions/setup-node@v4
69
+ with :
70
+ node-version : ${{ env.NODE_VERSION }}
71
+
72
+ - name : Cache dependencies ⚡
73
+ id : cache_dependencies
74
+ uses : actions/cache@v4
75
+ with :
76
+ path : node_modules
77
+ key : node-modules-${{ hashFiles('package-lock.json') }}
78
+
79
+ - name : Install dependencies 🔧
80
+ if : steps.cache_dependencies.outputs.cache-hit != 'true'
81
+ run : npm ci
82
+
57
83
- name : TypeScript Compiler 🔎
58
84
run : npm run tsc
59
85
60
86
test :
61
87
name : Test 🧪
62
88
runs-on : ubuntu-latest
63
- needs : setup
64
89
steps :
90
+ - name : Checkout 🛎️
91
+ uses : actions/checkout@v4
92
+
93
+ - uses : actions/setup-node@v4
94
+ with :
95
+ node-version : ${{ env.NODE_VERSION }}
96
+
97
+ - name : Cache dependencies ⚡
98
+ id : cache_dependencies
99
+ uses : actions/cache@v4
100
+ with :
101
+ path : node_modules
102
+ key : node-modules-${{ hashFiles('package-lock.json') }}
103
+
104
+ - name : Install dependencies 🔧
105
+ if : steps.cache_dependencies.outputs.cache-hit != 'true'
106
+ run : npm ci
107
+
65
108
- name : Test 🧪
66
109
run : npm run test-report
67
110
@@ -85,6 +128,10 @@ jobs:
85
128
path : node_modules
86
129
key : node-modules-${{ hashFiles('package-lock.json') }}
87
130
131
+ - name : Install dependencies 🔧
132
+ if : steps.cache_dependencies.outputs.cache-hit != 'true'
133
+ run : npm ci
134
+
88
135
- name : Build 🏗️
89
136
run : npm run storybook-build
90
137
@@ -115,6 +162,10 @@ jobs:
115
162
path : node_modules
116
163
key : node-modules-${{ hashFiles('package-lock.json') }}
117
164
165
+ - name : Install dependencies 🔧
166
+ if : steps.cache_dependencies.outputs.cache-hit != 'true'
167
+ run : npm ci
168
+
118
169
- name : Version Info 💉
119
170
env :
120
171
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments