20
20
node-version : ' 23.1.0'
21
21
22
22
- name : Setup pnpm
23
- uses : pnpm/action-setup@v4
23
+ uses : pnpm/action-setup@v3
24
24
with :
25
- version : 10.3.0
25
+ version : latest
26
26
27
27
- name : Get pnpm store directory
28
28
id : pnpm-cache
31
31
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
32
32
33
33
- name : Cache pnpm dependencies
34
- uses : actions/cache@v4
34
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
35
35
id : pnpm-cache-result
36
36
with :
37
37
path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
41
41
- name : Install dependencies
42
42
run : pnpm install
43
43
44
- # This job is for checking the code style, type and lint errors.
45
44
check-all :
46
45
needs : install-dependencies
47
46
runs-on : ubuntu-latest
@@ -58,12 +57,12 @@ jobs:
58
57
- name : Setup Node.js
59
58
uses : actions/setup-node@v4
60
59
with :
61
- node-version : ' 23.1.0 '
60
+ node-version : ' lts/* '
62
61
63
62
- name : Setup pnpm
64
- uses : pnpm/action-setup@v4
63
+ uses : pnpm/action-setup@v3
65
64
with :
66
- version : 10.3.0
65
+ version : latest
67
66
68
67
- name : Get pnpm store directory
69
68
id : pnpm-cache
@@ -72,15 +71,15 @@ jobs:
72
71
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
73
72
74
73
- name : Cache pnpm dependencies
75
- uses : actions/cache@v4
74
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
76
75
id : pnpm-cache-result
77
76
with :
78
77
path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
79
78
key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
80
79
restore-keys : ${{ runner.os }}-pnpm-
81
80
82
81
- name : 💅🏻 Type Check, Lint and format
83
- run : pnpm check:all
82
+ run : pnpm run checkAll
84
83
85
84
pa11y-ci :
86
85
needs : install-dependencies
@@ -98,12 +97,12 @@ jobs:
98
97
- name : Setup Node.js
99
98
uses : actions/setup-node@v4
100
99
with :
101
- node-version : ' 23.1.0 '
100
+ node-version : ' lts/* '
102
101
103
102
- name : Setup pnpm
104
- uses : pnpm/action-setup@v4
103
+ uses : pnpm/action-setup@v3
105
104
with :
106
- version : 10.3.0
105
+ version : latest
107
106
108
107
- name : Get pnpm store directory
109
108
id : pnpm-cache
@@ -112,12 +111,60 @@ jobs:
112
111
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
113
112
114
113
- name : Cache pnpm dependencies
115
- uses : actions/cache@v4
114
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
116
115
id : pnpm-cache-result
117
116
with :
118
117
path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
119
118
key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
120
119
restore-keys : ${{ runner.os }}-pnpm-
121
120
121
+ - name : Build UI
122
+ working-directory : ./packages/ui
123
+ run : pnpm run build
124
+
122
125
- name : Build App
123
- run : pnpm build
126
+ run : pnpm run build
127
+
128
+ - name : 🐣 Pa11y Test
129
+ working-directory : ${{ github.workspace }}/apps/blog.sakupi01.com
130
+ run : pnpm run start & sleep 3; pnpm pa11y
131
+
132
+ # This job is for executing tests.
133
+ test :
134
+ needs : install-dependencies
135
+ runs-on : ubuntu-latest
136
+ env :
137
+ TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
138
+ TURBO_TEAM : ${{ vars.TURBO_TEAM }}
139
+ steps :
140
+ - name : Checkout Commit
141
+ uses : actions/checkout@v4
142
+ with :
143
+ fetch-depth : 2
144
+
145
+ - name : Setup Node.js
146
+ uses : actions/setup-node@v4
147
+ with :
148
+ node-version : ' lts/*'
149
+
150
+ - name : Setup pnpm
151
+ uses : pnpm/action-setup@v3
152
+ with :
153
+ version : latest
154
+
155
+ - name : Get pnpm store directory
156
+ id : pnpm-cache
157
+ shell : bash
158
+ run : |
159
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
160
+
161
+ - name : Cache pnpm dependencies
162
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
163
+ id : pnpm-cache-result
164
+ with :
165
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
166
+ key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
167
+ restore-keys : ${{ runner.os }}-pnpm-
168
+
169
+ - name : 🧪 Test
170
+ run : pnpm run test:unit
0 commit comments