File tree Expand file tree Collapse file tree 3 files changed +32
-14
lines changed Expand file tree Collapse file tree 3 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 1
- name : CI workflow
2
- on : [push, pull_request]
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - ' docs/**'
7
+ - ' *.md'
8
+ pull_request :
9
+ paths-ignore :
10
+ - ' docs/**'
11
+ - ' *.md'
12
+
3
13
jobs :
4
14
test :
5
15
runs-on : ubuntu-latest
16
+
6
17
strategy :
7
18
matrix :
8
19
node-version : [10.x, 12.x, 14.x]
@@ -14,20 +25,24 @@ jobs:
14
25
options : --entrypoint redis-server
15
26
steps :
16
27
- uses : actions/checkout@v2
17
- - name : Use Node.js ${{ matrix.node-version }}
28
+
29
+ - name : Use Node.js
18
30
19
31
with :
20
- node-version : ${{ matrix.node-version }}
21
- - name : Install Dependencies
22
- run : npm install --ignore-scripts
23
- - name : Test
24
- run : npm test
32
+ node-version : ${{ matrix.node-version }}
33
+
34
+ - name : Install Dependencies
35
+ run : |
36
+ npm install --ignore-scripts
37
+
38
+ - name : Run Tests
39
+ run : |
40
+ npm run test
25
41
26
42
automerge :
27
43
needs : test
28
44
runs-on : ubuntu-latest
29
45
steps :
30
46
31
- if : ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
32
47
with :
33
- github-token : ${{secrets.github_token }}
48
+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# fastify-redis
2
2
3
- [ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat )] ( http://standardjs.com/ ) ![ CI workflow] ( https://github.com/fastify/fastify-redis/workflows/CI%20workflow/badge.svg )
3
+ ![ CI] ( https://github.com/fastify/fastify-redis/workflows/CI/badge.svg )
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
+ [ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat )] ( https://standardjs.com/ )
4
7
5
8
Fastify Redis connection plugin, with this you can share the same Redis connection in every part of your server.
6
9
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
7
7
"scripts" : {
8
- "test" : " npm run lint && npm run unit && npm run typescript" ,
9
8
"lint" : " standard" ,
10
- "unit" : " tap test/test.js" ,
9
+ "redis" : " docker run -p 6379:6379 --rm redis:5" ,
10
+ "test" : " npm run lint && npm run unit && npm run typescript" ,
11
11
"typescript" : " tsd" ,
12
- "redis " : " docker run -p 6379:6379 --rm redis:5 "
12
+ "unit " : " tap test/test.js "
13
13
},
14
14
"repository" : {
15
15
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments