Skip to content

Commit e721305

Browse files
authored
ci: migrate to fastify reusable workflow (#158)
* ci: migrate to fastify reusable workflow * ci: allow extra license
1 parent b5f8741 commit e721305

File tree

1 file changed

+4
-58
lines changed

1 file changed

+4
-58
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -11,62 +11,8 @@ on:
1111
- '*.md'
1212

1313
jobs:
14-
dependency-review:
15-
name: Dependency Review
16-
if: github.event_name == 'pull_request'
17-
runs-on: ubuntu-latest
18-
permissions:
19-
contents: read
20-
steps:
21-
- name: Check out repo
22-
uses: actions/checkout@v3
23-
with:
24-
persist-credentials: false
25-
26-
- name: Dependency review
27-
uses: actions/dependency-review-action@v2
28-
2914
test:
30-
runs-on: ubuntu-latest
31-
strategy:
32-
matrix:
33-
node-version: [14, 16, 18]
34-
redis-tag: [5, 6, 7]
35-
services:
36-
redis:
37-
image: redis:${{ matrix.redis-tag }}
38-
ports:
39-
- '6379:6379'
40-
options: '--entrypoint redis-server'
41-
steps:
42-
- name: Check out repo
43-
uses: actions/checkout@v3
44-
with:
45-
persist-credentials: false
46-
47-
- name: Setup Node ${{ matrix.node-version }}
48-
uses: actions/setup-node@v3
49-
with:
50-
node-version: ${{ matrix.node-version }}
51-
52-
- name: Install dependencies
53-
run: npm i --ignore-scripts
54-
55-
- name: Run tests
56-
run: npm test
57-
58-
automerge:
59-
name: Automerge Dependabot PRs
60-
if: >
61-
github.event_name == 'pull_request' &&
62-
github.event.pull_request.user.login == 'dependabot[bot]'
63-
needs: test
64-
permissions:
65-
pull-requests: write
66-
contents: write
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: fastify/github-action-merge-dependabot@v3
70-
with:
71-
github-token: ${{ secrets.GITHUB_TOKEN }}
72-
target: major
15+
uses: fastify/workflows/.github/workflows/plugins-ci-redis.yml@v3
16+
with:
17+
license-check: true
18+
license-check-allowed-additional: 'Apache*'

0 commit comments

Comments
 (0)