@@ -160,59 +160,57 @@ jobs:
160
160
return '/';
161
161
}
162
162
163
- # lint:
164
- # needs: if-run-ci
165
- # runs-on: ubuntu-latest
166
- # steps:
167
- # - uses: actions/checkout@v3
168
-
169
- # - name: Reconfigure git to use HTTP authentication
170
- # # see https://stackoverflow.com/a/69634516
171
- # # see https://github.com/actions/setup-node/issues/214#issuecomment-810829250
172
- # shell: bash
173
- # run: |
174
- # git config --global \
175
- # 'url.https://${{ secrets.GITHUB_TOKEN }}@github.com/.insteadOf' \
176
-
177
-
178
- # - name: Install Node.js
179
- # uses: actions/setup-node@v3
180
- # with:
181
- # node-version: 14.x
182
-
183
- # - name: Enable Corepack (Automatically setup a package manager for Node.js)
184
- # run: |
185
- # corepack enable
186
- # corepack enable npm
187
-
188
- # - name: Show node and package manager version
189
- # shell: bash
190
- # run: |
191
- # echo node "$(node --version)"
192
- # echo pnpm "$(pnpm --version)"
193
- # echo "pnpm-store-path=$(pnpm store path --silent)" >> "${GITHUB_ENV}"
194
-
195
- # - name: Cache pnpm
196
- # uses: actions/cache@v3
197
- # with:
198
- # key: node-cache-${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
199
- # path: ${{ env.pnpm-store-path }}
200
-
201
- # - name: Install dependencies
202
- # run: pnpm install
203
-
204
- # - name: Run linter
205
- # run: pnpm exec task test-other
163
+ lint :
164
+ needs : if-run-ci
165
+ runs-on : ubuntu-latest
166
+ steps :
167
+ - uses : actions/checkout@v3
168
+
169
+ - name : Reconfigure git to use HTTP authentication
170
+ # see https://stackoverflow.com/a/69634516
171
+ # see https://github.com/actions/setup-node/issues/214#issuecomment-810829250
172
+ shell : bash
173
+ run : |
174
+ git config --global \
175
+ 'url.https://${{ secrets.GITHUB_TOKEN }}@github.com/.insteadOf' \
176
+
177
+
178
+ - name : Install Node.js
179
+ uses : actions/setup-node@v3
180
+ with :
181
+ node-version : 14.x
182
+
183
+ - name : Enable Corepack (Automatically setup a package manager for Node.js)
184
+ run : |
185
+ corepack enable
186
+ corepack enable npm
187
+
188
+ - name : Show node and package manager version
189
+ shell : bash
190
+ run : |
191
+ echo node "$(node --version)"
192
+ echo pnpm "$(pnpm --version)"
193
+ echo "pnpm-store-path=$(pnpm store path --silent)" >> "${GITHUB_ENV}"
194
+
195
+ - name : Cache pnpm
196
+ uses : actions/cache@v3
197
+ with :
198
+ key : node-cache-${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
199
+ path : ${{ env.pnpm-store-path }}
200
+
201
+ - name : Install dependencies
202
+ run : pnpm install
203
+
204
+ - name : Run linter
205
+ run : pnpm exec task test-other
206
206
207
207
unit-test :
208
208
needs : detect-supported-node
209
209
strategy :
210
210
fail-fast : false
211
211
matrix :
212
- # os: [ubuntu-latest, windows-latest]
213
- # node-version: ${{ fromJson(needs.detect-supported-node.outputs.versions-json) }}
214
212
os : [ubuntu-latest, windows-latest]
215
- node-version : ["14.14.0", 18.x]
213
+ node-version : ${{ fromJson(needs.detect-supported-node.outputs.versions-json) }}
216
214
runs-on : ${{ matrix.os }}
217
215
steps :
218
216
- name : Determine whether to skip the test
@@ -472,15 +470,6 @@ jobs:
472
470
if : ${{ env.run-test }}
473
471
run : pnpm install
474
472
475
- - name : " [Debug] show node_modules/.bin/"
476
- run : Get-ChildItem -Path ./node_modules/.bin/ -Force
477
-
478
- - name : ' [Debug] show C:\npm\prefix\bin\'
479
- run : Get-ChildItem -Path C:\npm\prefix\bin\ -Force
480
-
481
- - name : ' [Debug] show C:\npm\prefix\'
482
- run : Get-ChildItem -Path C:\npm\prefix\ -Force
483
-
484
473
- name : Run unit test
485
474
if : ${{ env.run-test }}
486
475
run : pnpm exec task test-only
@@ -492,8 +481,7 @@ jobs:
492
481
# see https://github.com/sounisi5011/npm-packages/blob/2a5ca2de696eeb8b40a38de90580441c4c6c96e0/.github/workflows/ci.yaml#L482-L498
493
482
complete :
494
483
name : Complete CI
495
- # needs: [lint, unit-test]
496
- needs : [unit-test]
484
+ needs : [lint, unit-test]
497
485
if :
498
486
${{ always() && github.event.pull_request }}
499
487
# This job is required only for Pull Requests.
0 commit comments