Skip to content

Commit

Permalink
ci: migrate to reusable workflow (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored May 30, 2022
1 parent 46f4215 commit 35a20a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,14 @@ name: CI

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

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: |
npm install --ignore-scripts
- name: Run Tests With Tap
run: |
npm run test:tap
automerge:
needs: test
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "npm run test:tap",
"test:coverage": "tap -J test-tap/*.test.js --cov --coverage-report=lcovonly",
"test:jest": "jest --config=jest.config.json",
"test:tap": "tap -J test-tap/*.test.js",
Expand Down

0 comments on commit 35a20a3

Please sign in to comment.