github/workflows: lint all packages on yarn.lock changes

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-08-30 13:53:21 +02:00
parent 64a359745d
commit 3b556779d3
+6 -1
View File
@@ -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