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 abd07ec
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 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,21 @@ 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 }}
env:
LINK: https://github.com/mozilla/geckodriver/releases/download
GECKO_VERSION: v0.26.0
run: |
GECKO_FILE = geckodriver-$GECKO_VERSION-linux64
curl -L "$LINK/$GECKO_VERSION/$GECKO_FILE.tar.gz" | tar xz
- 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 abd07ec

Please sign in to comment.