Skip to content

Commit

Permalink
⬆️ ci and testing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Feb 25, 2024
1 parent 3c04c50 commit 9c94826
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node.js CI

on:
push:
branch: master
pull_request:
branch: master

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run test
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@
"raw-body": "^2.1.0"
},
"devDependencies": {
"istanbul": "^0.4.2",
"koa": "^2.3.0",
"mocha": "^3.1.2",
"standard": "^10.0.3",
"supertest": "^3.0.0"
"mocha": "^10.3.0",
"standard": "^17.1.0",
"supertest": "^6.3.4"
},
"scripts": {
"lint": "standard index.js test/**/*.js",
"test": "mocha",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
"test": "mocha --exit"
},
"keywords": [
"koa",
Expand Down

0 comments on commit 9c94826

Please sign in to comment.