Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5619689

Browse files
authored
Actions caching for nodejs (#5575)
* caching for nodejs and various CI dependency updates * commit the package-lock.json
1 parent 6daee1b commit 5619689

File tree

2 files changed

+5630
-3
lines changed

2 files changed

+5630
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
types: [unlabeled, opened, synchronize, reopened]
66
merge_group:
7+
workflow_dispatch:
78

89
name: CI
910

@@ -360,15 +361,18 @@ jobs:
360361
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
361362
- name: install geckodriver
362363
run: |
363-
wget https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz
364+
wget https://github.com/mozilla/geckodriver/releases/download/v0.36.0/geckodriver-v0.36.0-linux64.tar.gz
364365
mkdir geckodriver
365-
tar -xzf geckodriver-v0.34.0-linux64.tar.gz -C geckodriver
366+
tar -xzf geckodriver-v0.36.0-linux64.tar.gz -C geckodriver
366367
- uses: actions/setup-python@v5
367368
with:
368369
python-version: ${{ env.PYTHON_VERSION }}
369370
- run: python -m pip install -r requirements.txt
370371
working-directory: ./wasm/tests
371372
- uses: actions/setup-node@v4
373+
with:
374+
cache: "npm"
375+
cache-dependency-path: "wasm/demo/package-lock.json"
372376
- name: run test
373377
run: |
374378
export PATH=$PATH:`pwd`/../../geckodriver
@@ -378,7 +382,7 @@ jobs:
378382
NODE_OPTIONS: "--openssl-legacy-provider"
379383
working-directory: ./wasm/demo
380384
- uses: mwilliamson/setup-wabt-action@v3
381-
with: { wabt-version: "1.0.30" }
385+
with: { wabt-version: "1.0.36" }
382386
- name: check wasm32-unknown without js
383387
run: |
384388
cd wasm/wasm-unknown-test

0 commit comments

Comments
 (0)