Skip to content

Commit

Permalink
improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian authored and yndu13 committed Sep 10, 2024
1 parent 4743c55 commit 49b58a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run ci
- run: npm run test-cov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"scripts": {
"test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000",
"test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test",
"ci": "npm run test-cov && codecov",
"build": "tsc",
"prepublishOnly": "tsc",
"lint": "eslint . --ext .ts",
Expand All @@ -26,7 +25,6 @@
"@types/xml2js": "^0.4.14",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"codecov": "^3.6.1",
"eslint": "^8.57.0",
"mocha": "^6.2.0",
"nyc": "^14.1.1",
Expand Down

0 comments on commit 49b58a0

Please sign in to comment.