From ec949308762dfa3e5b98dacdc0b2bc22ebcb34e2 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 4 Jul 2023 13:59:57 +0200 Subject: [PATCH] Fixed only running linting on changed projects - this configures the lint step to only run on packages that have changed since the previous commit --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 456550bd21..a14e994d43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,6 +142,8 @@ jobs: name: Lint steps: - uses: actions/checkout@v3 + with: + fetch-depth: 100 - uses: actions/setup-node@v3 env: FORCE_COLOR: 0 @@ -158,7 +160,7 @@ jobs: path: ghost/**/.eslintcache key: eslint-cache - - run: yarn lint + - run: yarn lint --since ${{ github.event.pull_request.base.sha || github.event.before }} - uses: tryghost/actions/actions/slack-build@main if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'