Skip to content

Commit 7a55699

Browse files
committed
Update CI
1 parent f9e385f commit 7a55699

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/build.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
# Go
2222
steps:
2323
- name: Check out repo
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Set up Node.js
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

@@ -40,7 +40,14 @@ jobs:
4040
- name: Install
4141
run: npm install
4242

43+
- name: Test (Node.js <= 16.x)
44+
if: matrix.node-version <= '16.x'
45+
run: npm run test:nolint
46+
env:
47+
CI: true
48+
4349
- name: Test
50+
if: matrix.node-version > '16.x'
4451
run: npm test
4552
env:
4653
CI: true
@@ -72,10 +79,10 @@ jobs:
7279
# Go
7380
steps:
7481
- name: Check out repo
75-
uses: actions/checkout@v3
82+
uses: actions/checkout@v4
7683

7784
- name: Set up Node.js
78-
uses: actions/setup-node@v3
85+
uses: actions/setup-node@v4
7986
with:
8087
node-version: lts/*
8188
registry-url: https://registry.npmjs.org/

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
"types": "types/index.d.ts",
1313
"scripts": {
1414
"lint": "eslint --fix .",
15+
"test": "npm run lint && npm run test:integration && npm run coverage && npm run test:types",
16+
"test:nolint": "npm run test:integration && npm run coverage && npm run test:types",
1517
"test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-arc",
1618
"test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-arc",
1719
"coverage": "nyc --reporter=lcov --reporter=text npm run test:unit",
18-
"test": "npm run lint && npm run test:integration && npm run coverage && npm run test:types",
1920
"test:types": "tsd --files types/*.test-d.ts",
2021
"rc": "npm version prerelease --preid RC"
2122
},

0 commit comments

Comments
 (0)