mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
Fixed only running linting on changed projects
- this configures the lint step to only run on packages that have changed since the previous commit
This commit is contained in:
parent
1c03280223
commit
ec94930876
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user