Skip to content

Commit 35a20a3

Browse files
authored
ci: migrate to reusable workflow (#115)
1 parent 46f4215 commit 35a20a3

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,14 @@ name: CI
22

33
on:
44
push:
5-
branches:
6-
- master
75
paths-ignore:
86
- 'docs/**'
97
- '*.md'
108
pull_request:
11-
branches:
12-
- master
139
paths-ignore:
1410
- 'docs/**'
1511
- '*.md'
1612

1713
jobs:
1814
test:
19-
runs-on: ${{ matrix.os }}
20-
21-
strategy:
22-
matrix:
23-
node-version: [14.x, 16.x, 18.x]
24-
os: [macos-latest, ubuntu-latest, windows-latest]
25-
26-
steps:
27-
- uses: actions/checkout@v3
28-
29-
- name: Use Node.js
30-
uses: actions/setup-node@v3
31-
with:
32-
node-version: ${{ matrix.node-version }}
33-
34-
- name: Install Dependencies
35-
run: |
36-
npm install --ignore-scripts
37-
38-
- name: Run Tests With Tap
39-
run: |
40-
npm run test:tap
41-
42-
automerge:
43-
needs: test
44-
runs-on: ubuntu-latest
45-
permissions:
46-
pull-requests: write
47-
contents: write
48-
steps:
49-
- uses: fastify/github-action-merge-dependabot@v3
50-
with:
51-
github-token: ${{ secrets.GITHUB_TOKEN }}
15+
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"main": "index.js",
1313
"types": "index.d.ts",
1414
"scripts": {
15+
"test": "npm run test:tap",
1516
"test:coverage": "tap -J test-tap/*.test.js --cov --coverage-report=lcovonly",
1617
"test:jest": "jest --config=jest.config.json",
1718
"test:tap": "tap -J test-tap/*.test.js",

0 commit comments

Comments
 (0)