Build: Separate the install step from running tests in GitHub Actions

Also, update the "Run test" label to "Run tests".

Closes gh-4992

(cherry picked from commit eef972508c)
This commit is contained in:
Michał Gołębiowski-Owczarek 2022-01-04 16:27:42 +01:00 committed by Michał Gołębiowski-Owczarek
parent a1373e2e4f
commit cb35067f1b

View File

@ -59,10 +59,13 @@ jobs:
wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME}
if: "contains(matrix.NAME, 'Firefox ESR')"
- name: Run test
- name: Install dependencies
run: |
npm install
- name: Run tests
env:
BROWSERS: ${{ matrix.BROWSERS }}
run: |
export PATH=${HOME}/firefox:$PATH
npm install
npm run ${{ matrix.NPM_SCRIPT }}