Skip to content

Commit f873c0e

Browse files
authored
Merge pull request RustPython#1746 from RustPython/coolreader18/wasm-test-production
Have wasm/demo's "test" npm script build the demo in release mode
2 parents 67f072d + 60037a2 commit f873c0e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ jobs:
124124
runs-on: ubuntu-latest
125125
steps:
126126
- uses: actions/checkout@master
127+
- name: Cache cargo dependencies
128+
uses: actions/cache@v1
129+
with:
130+
key: ${{ runner.os }}-wasm-${{ hashFiles('**/Cargo.lock') }}
131+
path: target
132+
restore-keys: |
133+
${{ runner.os }}-wasm-
127134
- name: install wasm-pack
128135
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
129136
- name: install geckodriver

wasm/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dev": "webpack-dev-server -d",
2525
"build": "webpack",
2626
"dist": "webpack --mode production",
27-
"test": "webpack && cd ../tests && pipenv run pytest"
27+
"test": "webpack --mode production && cd ../tests && pipenv run pytest"
2828
},
2929
"repository": {
3030
"type": "git",

0 commit comments

Comments
 (0)