CI: move linting after installation
[poolifier.git] / .github / workflows / ci.yml
index 8cd177af39cfdaf64fc19bd9845e079629a13674..63f2552b4960adf615f679688de20f488ec7f63f 100644 (file)
@@ -14,12 +14,12 @@ on:
 
 jobs:
   build:
-    runs-on: ${{ matrix.node }}
+    runs-on: ${{ matrix.os }}
 
     strategy:
       matrix:
         os: [windows-latest, macos-latest, ubuntu-latest]
-        node: ['14.x', '16.x', '18.x']
+        node: ['16.x', '18.x']
 
     steps:
       - name: Checkout
@@ -35,13 +35,14 @@ jobs:
       - name: Install
         run: npm ci
 
-      - name: Build
-        run: npm run build --if-present
-
       - name: Lint
         run: npm run lint
 
+      - name: Build
+        run: npm run build --if-present
+
       - name: Tests
+        if: "matrix.os != 'windows-latest' || matrix.node != '18.x'"
         run: npm run test
 
       - name: Coverage & Linter Reports