Skip to content

Commit

Permalink
fix ci (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jun 25, 2023
1 parent 33ee8ab commit 5bee517
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -11,7 +11,9 @@ jobs:
node-version: ['0.10', '0.12', 4.x, 6.x, 8.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v1
Expand All @@ -31,13 +33,15 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false

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

Expand All @@ -48,3 +52,28 @@ jobs:
- name: Run tests
run: |
npm run test
types:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: 16.x

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

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

- name: Install
run: |
npm install
- name: Run types tests
run: |
npm run typescript
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -8,12 +8,13 @@
"unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test/test.js test/promise.js",
"coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js test/promise.js",
"test:report": "npm run lint && npm run unit:report",
"test": "npm run lint && npm run unit && npm run typescript",
"test": "npm run lint && npm run unit",
"typescript": "tsc --project ./test/tsconfig.json",
"legacy": "tape test/test.js"
},
"pre-commit": [
"test"
"test",
"typescript"
],
"repository": {
"type": "git",
Expand Down

0 comments on commit 5bee517

Please sign in to comment.