Skip to content

Commit

Permalink
Merge 73b8025 into 0e26517
Browse files Browse the repository at this point in the history
  • Loading branch information
darkgl0w committed Jan 23, 2022
2 parents 0e26517 + 73b8025 commit 983f920
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI workflow

on:
push:
paths-ignore:
Expand All @@ -10,12 +11,28 @@ on:
- '*.md'

jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install
run: npm install --ignore-scripts

- name: Lint code
run: npm run lint
test:
needs: linter
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [10, 12, 14, 16]
node-version: [10, 12, 14, 16, 17]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@
"description": "Serve Swagger/OpenAPI documentation for Fastify, supporting dynamic generation",
"main": "index.js",
"scripts": {
"coverage": "npm run unit -- --coverage-report=lcovonly",
"lint": "standard",
"lint:fix": "npm run lint -- --fix",
"prepare": "node lib/util/prepare-swagger-ui",
"prepublishOnly": "npm run prepare",
"test": "standard && tap --100 \"test/**/*.js\" && npm run typescript",
"test:ci": "standard && tap \"test/**/*.js\" --coverage-report=lcovonly && npm run typescript",
"typescript": "tsd"
"test": "npm run lint && npm run unit && npm run typescript",
"test:ci": "npm run coverage && npm run typescript",
"typescript": "tsd",
"unit": "tap -J \"test/**/*.js\"",
"unit:report": "npm run unit -- --coverage-report=html",
"unit:verbose": "npm run unit -- -Rspec"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 983f920

Please sign in to comment.