Skip to content

Commit cb9ffe8

Browse files
committed
Updated Test workflow to use re-usable template
refs https://github.com/TryGhost/actions@main/.github/workflows/test.yml - this commit switches CI to using a re-usable workflow to reduce duplication and make repositories easier to maintain
1 parent 79ab789 commit cb9ffe8

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

.github/workflows/test.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,7 @@ on:
66
- main
77
- 'renovate/*'
88
jobs:
9-
build:
10-
runs-on: ubuntu-18.04
11-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
12-
strategy:
13-
matrix:
14-
node: [ '12', '14' ]
15-
name: Node ${{ matrix.node }}
16-
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v2
19-
with:
20-
node-version: ${{ matrix.node }}
21-
- run: yarn global add lerna
22-
- run: yarn
23-
- run: yarn test
24-
25-
- uses: codecov/codecov-action@v2
26-
27-
- uses: daniellockyer/action-slack-build@master
28-
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
29-
with:
30-
status: ${{ job.status }}
31-
env:
32-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
9+
test:
10+
uses: tryghost/actions/.github/workflows/test.yml@main
11+
secrets:
12+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)