From 3b556779d3cb44d4e9b2a0b06b407c49ff7f43c3 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 30 Aug 2022 13:53:21 +0200 Subject: [PATCH] github/workflows: lint all packages on yarn.lock changes Signed-off-by: Patrik Oldsberg --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bead8d569..05231fbc10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,9 +193,14 @@ jobs: - name: lock run: yarn lock:check - - name: lint + - name: lint changed packages + if: ${{ steps.yarn-lock.outcome == 'success' }} run: yarn backstage-cli repo lint --since origin/master + - name: lint all packages + if: ${{ steps.yarn-lock.outcome == 'failure' }} + run: yarn backstage-cli repo lint + - name: test changed packages if: ${{ steps.yarn-lock.outcome == 'success' }} run: yarn lerna -- run test --since origin/master -- --coverage --runInBand