mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Extracted code linting test to separate CI job
- this was taking over a minute to run (?!), and was running on each matrix job - we only need to run it once as changing Node versions shouldn't change the results
This commit is contained in:
parent
67d42a62fe
commit
969b84b355
1 changed files with 18 additions and 1 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
@ -10,6 +10,24 @@ on:
|
|||
env:
|
||||
FORCE_COLOR: 1
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||
name: Lint
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.10.0'
|
||||
- run: yarn
|
||||
- run: yarn lint
|
||||
- uses: daniellockyer/action-slack-build@master
|
||||
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||
|
@ -44,7 +62,6 @@ jobs:
|
|||
mysql root password: 'root'
|
||||
|
||||
- run: yarn
|
||||
- run: yarn lint
|
||||
- run: grunt test-acceptance --verbose
|
||||
- run: grunt test-unit --verbose
|
||||
- run: grunt test-regression --verbose
|
||||
|
|
Loading…
Add table
Reference in a new issue