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 11name : CI
2- ' on ' :
2+
3+ on :
34 push :
45 paths-ignore :
5- - docs/**
6+ - ' docs/**'
67 - ' *.md'
78 pull_request :
89 paths-ignore :
9- - docs/**
10+ - ' docs/**'
1011 - ' *.md'
12+
1113jobs :
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+
1229 test :
1330 runs-on : ubuntu-latest
1431 strategy :
1532 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]
2435 services :
2536 redis :
2637 image : redis:${{ matrix.redis-tag }}
2738 ports :
2839 - ' 6379:6379'
2940 options : ' --entrypoint redis-server'
3041 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 }}
3348 uses : actions/setup-node@v3
3449 with :
3550 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+
4258 automerge :
59+ name : Automerge Dependabot PRs
60+ if : >
61+ github.event_name == 'pull_request' &&
62+ github.event.pull_request.user.login == 'dependabot[bot]'
4363 needs : test
44- runs-on : ubuntu-latest
4564 permissions :
4665 pull-requests : write
4766 contents : write
67+ runs-on : ubuntu-latest
4868 steps :
4969 - uses : fastify/github-action-merge-dependabot@v3
5070 with :
5171 github-token : ${{ secrets.GITHUB_TOKEN }}
72+ target : major
Original file line number Diff line number Diff line change 22
33![ CI] ( https://github.com/fastify/fastify-redis/workflows/CI/badge.svg )
44[ ![ 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 )
65[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat )] ( https://standardjs.com/ )
76
87Fastify 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