diff --git a/.github/workflows/js_api.yml b/.github/workflows/js_api.yml index bcd222e4ae..53cec67829 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,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'