Skip to content

Commit

Permalink
ci!: migrate to fastify reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored May 30, 2022
1 parent fc8a95a commit 1d12663
Showing 1 changed file with 8 additions and 54 deletions.
62 changes: 8 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,15 @@
name: Continuous Integration
name: CI

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

env:
CI: true
COVERALLS: 0
- 'docs/**'
- '*.md'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Maintenance and active LTS
node-version: [10, 12, 14, 16]
os: [ubuntu-latest, windows-latest, macOS-latest]
name: Node ${{ matrix.node-version }}

steps:
- uses: actions/checkout@v2

- 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
# Unit and lint tests
- name: Tests
id: test
run: npm run 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

0 comments on commit 1d12663

Please sign in to comment.