]> 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)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 4 Jan 2022 15:34:40 +0000 (16:34 +0100)
Also, update the "Run test" label to "Run tests".

Closes gh-4992

(cherry picked from commit eef972508c8be6cc3cd0039d34dc9fe16bac916c)

.github/workflows/node.js.yml

index d4e4c24fb0b543b9b62edcb1da2ba8bf9732c867..0eea38b89cc4bca7dc6fc7fb4dc0e53b35818cee 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 }}