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

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

Closes gh-4992
This commit is contained in:
Michał Gołębiowski-Owczarek 2022-01-04 16:27:42 +01:00 committed by GitHub
parent 5d5ea01511
commit eef972508c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 }}