From 0ca69e2e2c6ab2b274c788a0b40cd623867dbe5a Mon Sep 17 00:00:00 2001 From: Urhengulas Date: Wed, 5 Aug 2020 17:35:54 +0200 Subject: [PATCH] CI (js_api.yml): Fix `wasm-pack test --firefox --headless` --- .github/workflows/js_api.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/js_api.yml b/.github/workflows/js_api.yml index bcd222e4ae..5c26b25e35 100644 --- a/.github/workflows/js_api.yml +++ b/.github/workflows/js_api.yml @@ -16,8 +16,10 @@ jobs: include: - conf: firefox headless: --headless + driver: --geckodriver ./geckodriver - conf: chrome headless: --headless + fail-fast: false env: RUST_BACKTRACE: 1 @@ -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'