Skip to content

Commit

Permalink
CI (js_api.yml): Fix wasm-pack test --firefox --headless
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Aug 5, 2020
1 parent cef90a2 commit 498469d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/js_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
include:
- conf: firefox
headless: --headless
driver: --geckodriver ./geckodriver
- conf: chrome
headless: --headless
fail-fast: false

env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -101,10 +103,19 @@ jobs:
with:
node-version: 14

# needed because of # https://github.com/rustwasm/wasm-bindgen/issues/2261
- name: Install geckodriver
if: matrix.conf == 'firefox'
working-directory: ${{ env.RAV1E_JS_DIR }}
run: |
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
tar -xvzf geckodriver*
chmod +x geckodriver
- name: Test ${{ matrix.conf }} (${{ matrix.headless }})
if: matrix.conf != 'build'
working-directory: ${{ env.RAV1E_JS_DIR }}
run: wasm-pack test --${{ matrix.conf }} ${{ matrix.headless }}
run: wasm-pack test --${{ matrix.conf }} ${{ matrix.headless }} ${{ matrix.driver }}

- name: Install and Build JavaScript
if: matrix.conf == 'build'
Expand Down

0 comments on commit 498469d

Please sign in to comment.