CI: move linting after installation
[poolifier.git] / .github / workflows / ci.yml
index 5cf59718b9c99c61e8a19be1b59be5c15190d885..63f2552b4960adf615f679688de20f488ec7f63f 100644 (file)
@@ -35,14 +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'"
+        if: "matrix.os != 'windows-latest' || matrix.node != '18.x'"
         run: npm run test
 
       - name: Coverage & Linter Reports