From 17b4f679fd5067e6a5cabbf21064c91f665af7c7 Mon Sep 17 00:00:00 2001 From: Damian Stasik Date: Sat, 18 Feb 2023 17:08:00 +0100 Subject: [PATCH] ci: Skip unnecessary builds (#2389) --- .github/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60975be7fc..498403c49c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: restore-keys: | ${{ runner.os }}-node-${{ env.NODE_VERSION }}- - name: Install dependencies - run: npm ci + run: npm ci --ignore-scripts - name: CI Node Engine Check run: npm run ci:checkNodeEngine check-lint: @@ -47,7 +47,7 @@ jobs: restore-keys: | ${{ runner.os }}-node-${{ env.NODE_VERSION }}- - name: Install dependencies - run: npm ci + run: npm ci --ignore-scripts - run: npm run lint check-circular: name: Circular Dependencies @@ -67,7 +67,7 @@ jobs: restore-keys: | ${{ runner.os }}-node-${{ env.NODE_VERSION }}- - name: Install dependencies - run: npm ci + run: npm ci --ignore-scripts - name: Scan for circular dependencies run: npm run madge:circular check-docker: @@ -143,12 +143,8 @@ jobs: key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}- - - name: Install dependencies (Node < 10) - run: npm install - if: ${{ steps.node.outputs.node_major < 10 }} - - name: Install dependencies (Node >= 10) + - name: Install dependencies run: npm ci - if: ${{ steps.node.outputs.node_major >= 10 }} - name: Tests run: npm test - name: Test bundles