Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci!: migrate to fastify reusable workflow #52

Merged
merged 2 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"which": "^2.0.2"
},
"devDependencies": {
"pre-commit": "git://github.com/fastify/pre-commit.git",
"pre-commit": "git+https://git@github.com/fastify/pre-commit.git",
"proxyquire": "^2.1.3",
"standard": "^16.0.3",
"tap": "^16.0.0"
Expand Down