]> source.dussan.org Git - jquery.git/commitdiff
Build: Separate the install step from running tests in GitHub Actions
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 4 Jan 2022 15:27:42 +0000 (16:27 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Jan 2022 15:27:42 +0000 (16:27 +0100)
Also, update the "Run test" label to "Run tests".

Closes gh-4992

.github/workflows/node.js.yml

index 7bf8617981ad37456b3430ef83ba4e38b1980815..0b4e6950f03664ec446d68111d96e83b7d77e3c9 100644 (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 }}