-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci!: migrate to fastify reusable workflow
- Loading branch information
Showing
1 changed file
with
8 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |