Skip to content

Commit 713e9a1

Browse files
committed
⏪ Revert "💚 [Debug] Show the contents of the ./node_modules/.bin directory and the C:\npm\prefix\bin\ directory"
This reverts commit e491ea1 and cd20884.
1 parent 09681d1 commit 713e9a1

File tree

1 file changed

+45
-57
lines changed

1 file changed

+45
-57
lines changed

.github/workflows/ci.yaml

Lines changed: 45 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -160,59 +160,57 @@ jobs:
160160
return '/';
161161
}
162162
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-
# 'ssh://[email protected]/'
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
206206

207207
unit-test:
208208
needs: detect-supported-node
209209
strategy:
210210
fail-fast: false
211211
matrix:
212-
# os: [ubuntu-latest, windows-latest]
213-
# node-version: ${{ fromJson(needs.detect-supported-node.outputs.versions-json) }}
214212
os: [ubuntu-latest, windows-latest]
215-
node-version: ["14.14.0", 18.x]
213+
node-version: ${{ fromJson(needs.detect-supported-node.outputs.versions-json) }}
216214
runs-on: ${{ matrix.os }}
217215
steps:
218216
- name: Determine whether to skip the test
@@ -472,15 +470,6 @@ jobs:
472470
if: ${{ env.run-test }}
473471
run: pnpm install
474472

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-
484473
- name: Run unit test
485474
if: ${{ env.run-test }}
486475
run: pnpm exec task test-only
@@ -492,8 +481,7 @@ jobs:
492481
# see https://github.com/sounisi5011/npm-packages/blob/2a5ca2de696eeb8b40a38de90580441c4c6c96e0/.github/workflows/ci.yaml#L482-L498
493482
complete:
494483
name: Complete CI
495-
# needs: [lint, unit-test]
496-
needs: [unit-test]
484+
needs: [lint, unit-test]
497485
if:
498486
${{ always() && github.event.pull_request }}
499487
# This job is required only for Pull Requests.

0 commit comments

Comments
 (0)