From 4c49185b52c24087a66518040ce4d6eb9ed7f51f Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 4 Feb 2020 20:36:11 -0600 Subject: [PATCH 1/2] Have wasm/demo's "test" npm script build the demo in release mode --- wasm/demo/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/demo/package.json b/wasm/demo/package.json index b05fe5c8a8..46c6aa340c 100644 --- a/wasm/demo/package.json +++ b/wasm/demo/package.json @@ -24,7 +24,7 @@ "dev": "webpack-dev-server -d", "build": "webpack", "dist": "webpack --mode production", - "test": "webpack && cd ../tests && pipenv run pytest" + "test": "webpack --mode production && cd ../tests && pipenv run pytest" }, "repository": { "type": "git", From 60037a2fbb80ffe61a0d443e193a15acb85e7dba Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 4 Feb 2020 21:43:06 -0600 Subject: [PATCH 2/2] Cache WASM dependencies --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4659a9d465..089ee913a7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -124,6 +124,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - name: Cache cargo dependencies + uses: actions/cache@v1 + with: + key: ${{ runner.os }}-wasm-${{ hashFiles('**/Cargo.lock') }} + path: target + restore-keys: | + ${{ runner.os }}-wasm- - name: install wasm-pack run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: install geckodriver