22
22
- name : Setup pnpm
23
23
uses : pnpm/action-setup@v3
24
24
with :
25
- version : latest
25
+ version : 10.3.0
26
26
27
27
- name : Get pnpm store directory
28
28
id : pnpm-cache
@@ -57,12 +57,12 @@ jobs:
57
57
- name : Setup Node.js
58
58
uses : actions/setup-node@v4
59
59
with :
60
- node-version : ' lts/* '
60
+ node-version : ' 23.1.0 '
61
61
62
62
- name : Setup pnpm
63
63
uses : pnpm/action-setup@v3
64
64
with :
65
- version : latest
65
+ version : 10.3.0
66
66
67
67
- name : Get pnpm store directory
68
68
id : pnpm-cache
79
79
restore-keys : ${{ runner.os }}-pnpm-
80
80
81
81
- name : 💅🏻 Type Check, Lint and format
82
- run : pnpm run checkAll
83
-
84
- pa11y-ci :
85
- needs : install-dependencies
86
- runs-on : ubuntu-latest
87
- env :
88
- TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
89
- TURBO_TEAM : ${{ vars.TURBO_TEAM }}
90
-
91
- steps :
92
- - name : Checkout Commit
93
- uses : actions/checkout@v4
94
- with :
95
- fetch-depth : 2
96
-
97
- - name : Setup Node.js
98
- uses : actions/setup-node@v4
99
- with :
100
- node-version : ' lts/*'
101
-
102
- - name : Setup pnpm
103
- uses : pnpm/action-setup@v3
104
- with :
105
- version : latest
106
-
107
- - name : Get pnpm store directory
108
- id : pnpm-cache
109
- shell : bash
110
- run : |
111
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
112
-
113
- - name : Cache pnpm dependencies
114
- uses : actions/cache@v4
115
- id : pnpm-cache-result
116
- with :
117
- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
118
- key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
119
- restore-keys : ${{ runner.os }}-pnpm-
120
-
121
- - name : Build UI
122
- working-directory : ./packages/ui
123
- run : pnpm run build
124
-
125
- - name : Build App
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@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
82
+ run : pnpm run checkAll
0 commit comments