Skip to content

Commit 6c1f09e

Browse files
Update setup-node-test.yml
1 parent 032822e commit 6c1f09e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/setup-node-test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ jobs:
1414
# - uses : salmanmkc/setup-node@bump-actions-cache-v5
1515
with:
1616
node-version: 20
17-
cache: npm
18-
- name: Install dependencies
19-
run: npm install
17+
18+
- name: Reproduce url.parse DeprecationWarning (Linux/macOS)
19+
if: runner.os != 'Windows'
20+
shell: bash
21+
run: |
22+
node --trace-deprecation -e "require('url').parse('https://example.com')"
2023
21-
24+
- name: Reproduce url.parse DeprecationWarning (Windows)
25+
if: runner.os == 'Windows'
26+
shell: pwsh
27+
run: |
28+
node --trace-deprecation -e "require('url').parse('https://example.com')"
2229

0 commit comments

Comments
 (0)