Skip to content

Commit 05c210b

Browse files
authored
ci: migrate to fastify reusable workflow (#203)
1 parent f249815 commit 05c210b

File tree

2 files changed

+6
-53
lines changed

2 files changed

+6
-53
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,15 @@
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-
- 14
18-
- 16
19-
- 18
20-
os:
21-
- macos-latest
22-
- ubuntu-latest
23-
- windows-latest
24-
steps:
25-
- uses: actions/checkout@v3
26-
- name: Use Node.js
27-
uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
- name: Install Dependencies
31-
run: |
32-
npm install --ignore-scripts
33-
- name: Run Tests
34-
run: |
35-
npm run test:ci
36-
- name: Coveralls Parallel
37-
uses: coverallsapp/[email protected]
38-
with:
39-
github-token: ${{ secrets.GITHUB_TOKEN }}
40-
parallel: true
41-
flag-name: run-${{ matrix.node-version }}-${{ matrix.os }}
42-
coverage:
43-
needs: test
44-
runs-on: ubuntu-latest
45-
steps:
46-
- name: Coveralls Finished
47-
uses: coverallsapp/[email protected]
48-
with:
49-
github-token: ${{ secrets.GITHUB_TOKEN }}
50-
parallel-finished: true
51-
automerge:
52-
needs: test
53-
runs-on: ubuntu-latest
54-
permissions:
55-
pull-requests: write
56-
contents: write
57-
steps:
58-
- uses: fastify/github-action-merge-dependabot@v3
59-
with:
60-
github-token: ${{ secrets.GITHUB_TOKEN }}
15+
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
![CI](https://github.com/fastify/fastify-cors/workflows/CI/badge.svg)
44
[![NPM version](https://img.shields.io/npm/v/@fastify/cors.svg?style=flat)](https://www.npmjs.com/package/@fastify/cors)
5-
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-cors/badge.svg)](https://snyk.io/test/github/fastify/fastify-cors)
6-
[![Coverage Status](https://coveralls.io/repos/github/fastify/fastify-cors/badge.svg?branch=master)](https://coveralls.io/github/fastify/fastify-cors?branch=master)
75
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
86

97

0 commit comments

Comments
 (0)