diff --git a/.github/workflows/js_api.yml b/.github/workflows/js_api.yml index 67ae477fad..6999a0bf62 100644 --- a/.github/workflows/js_api.yml +++ b/.github/workflows/js_api.yml @@ -16,6 +16,7 @@ jobs: include: - conf: firefox headless: --headless + driver: --geckodriver node_modules/geckodriver/bin/geckodriver - conf: chrome headless: --headless fail-fast: false @@ -103,12 +104,14 @@ jobs: node-version: 14 # needed because of # https://github.com/rustwasm/wasm-bindgen/issues/2261 - - run: npm install -g geckodriver@1.19.1 + - if: matrix.conf == 'firefox' + working-directory: ${{ env.RAV1E_JS_DIR }} + run: npm install geckodriver@1.19.1 - 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'