Skip to content

Commit

Permalink
ci: migrate to fastify reusable workflow (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored May 17, 2022
1 parent a261b91 commit d7b3818
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 46 deletions.
52 changes: 8 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,15 @@
name: Continuous Integration
'on':
name: CI

on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version:
- 16
- 18
os:
- ubuntu-latest
- windows-latest
- macOS-latest
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
id: setup_node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
id: install
run: npm install --ignore-scripts
- name: Check licenses
id: license_check
run: |
npm run license-checker --if-present
- name: Tests
id: test
run: npm test
- name: Typescript
id: typescript_test
run: npm run typescript --if-present
automerge:
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# @fastify/diagnostics-channel

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

## Install
Expand Down

0 comments on commit d7b3818

Please sign in to comment.