File tree Expand file tree Collapse file tree 2 files changed +41
-21
lines changed Expand file tree Collapse file tree 2 files changed +41
-21
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
- ' on ' :
2
+
3
+ on :
3
4
push :
4
5
paths-ignore :
5
- - docs/**
6
+ - ' docs/**'
6
7
- ' *.md'
7
8
pull_request :
8
9
paths-ignore :
9
- - docs/**
10
+ - ' docs/**'
10
11
- ' *.md'
12
+
11
13
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@v1
28
+
12
29
test :
13
30
runs-on : ubuntu-latest
14
31
strategy :
15
32
matrix :
16
- node-version :
17
- - 14
18
- - 16
19
- - 18
20
- redis-tag :
21
- - 5
22
- - 6
23
- - 7
33
+ node-version : [14, 16, 18]
34
+ redis-tag : [5, 6, 7]
24
35
services :
25
36
redis :
26
37
image : redis:${{ matrix.redis-tag }}
27
38
ports :
28
39
- ' 6379:6379'
29
40
options : ' --entrypoint redis-server'
30
41
steps :
31
- - uses : actions/checkout@v3
32
- - name : Use Node.js
42
+ - name : Check out repo
43
+ uses : actions/checkout@v3
44
+ with :
45
+ persist-credentials : false
46
+
47
+ - name : Setup Node ${{ matrix.node-version }}
33
48
uses : actions/setup-node@v3
34
49
with :
35
50
node-version : ${{ matrix.node-version }}
36
- - name : Install Dependencies
37
- run : |
38
- npm install --ignore-scripts
39
- - name : Run Tests
40
- run : |
41
- npm test
51
+
52
+ - name : Install dependencies
53
+ run : npm i --ignore-scripts
54
+
55
+ - name : Run tests
56
+ run : npm test
57
+
42
58
automerge :
59
+ name : Automerge Dependabot PRs
60
+ if : >
61
+ github.event_name == 'pull_request' &&
62
+ github.event.pull_request.user.login == 'dependabot[bot]'
43
63
needs : test
44
- runs-on : ubuntu-latest
45
64
permissions :
46
65
pull-requests : write
47
66
contents : write
67
+ runs-on : ubuntu-latest
48
68
steps :
49
69
- uses : fastify/github-action-merge-dependabot@v3
50
70
with :
51
71
github-token : ${{ secrets.GITHUB_TOKEN }}
72
+ target : major
Original file line number Diff line number Diff line change 2
2
3
3
![ CI] ( https://github.com/fastify/fastify-redis/workflows/CI/badge.svg )
4
4
[ ![ NPM version] ( https://img.shields.io/npm/v/@fastify/redis.svg?style=flat )] ( https://www.npmjs.com/package/@fastify/redis )
5
- [ ![ Known Vulnerabilities] ( https://snyk.io/test/github/fastify/fastify-redis/badge.svg )] ( https://snyk.io/test/github/fastify/fastify-redis )
6
5
[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat )] ( https://standardjs.com/ )
7
6
8
7
Fastify Redis connection plugin; with this you can share the same Redis connection in every part of your server.
You can’t perform that action at this time.
0 commit comments