CI: move linting after installation
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Oct 2022 19:13:34 +0000 (21:13 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Oct 2022 19:13:34 +0000 (21:13 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
.github/workflows/npmpublish.yml

index d9233944f49ab30acae5bab420539e4f223f29b5..63f2552b4960adf615f679688de20f488ec7f63f 100644 (file)
@@ -35,12 +35,12 @@ 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
index 6b1a3731c6e8678da4fb2320daf009eb9055ad87..e05691eb616bac4c4d9d60146ffb974c03da7e33 100644 (file)
@@ -20,14 +20,14 @@ jobs:
       - name: Install
         run: npm ci
 
+      - name: Lint
+        run: npm run lint
+
       - name: Tests & Coverage
         run: |
           npm run test
           npm run coverage
 
-      - name: Lint
-        run: npm run lint
-
       - name: Production Build
         run: npm run build:prod