Skip to content

Commit 62a1356

Browse files
authored
ci: migrate to fastify reusable workflow (#101)
1 parent a41285d commit 62a1356

File tree

2 files changed

+8
-42
lines changed

2 files changed

+8
-42
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,17 @@
11
name: 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+
1113
jobs:
1214
test:
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
node-version:
17-
- 10
18-
- 12
19-
- 14
20-
- 16
21-
- 17
22-
os:
23-
- macos-latest
24-
- ubuntu-latest
25-
- windows-latest
26-
steps:
27-
- uses: actions/checkout@v3
28-
- name: Use Node.js
29-
uses: actions/setup-node@v3
30-
with:
31-
node-version: ${{ matrix.node-version }}
32-
- name: Install Dependencies
33-
run: |
34-
npm install --ignore-scripts
35-
- name: Lint
36-
run: |
37-
npm run lint:ci
38-
- name: Run Tests
39-
run: |
40-
npm test
41-
automerge:
42-
needs: test
43-
runs-on: ubuntu-latest
44-
permissions:
45-
pull-requests: write
46-
contents: write
47-
steps:
48-
- uses: fastify/github-action-merge-dependabot@v3
49-
with:
50-
github-token: ${{ secrets.GITHUB_TOKEN }}
15+
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
16+
with:
17+
lint: true

Readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
![CI](https://github.com/fastify/fastify-caching/workflows/CI/badge.svg)
44
[![NPM version](https://img.shields.io/npm/v/@fastify/caching.svg?style=flat)](https://www.npmjs.com/package/@fastify/caching)
5-
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-caching/badge.svg)](https://snyk.io/test/github/fastify/fastify-caching)
65
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
76

87
*@fastify/caching* is a plugin for the [Fastify](http://fastify.io/) framework

0 commit comments

Comments
 (0)