From 663d38512101b6129b83cd36f6848279bc6efbfd Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Mon, 29 Apr 2024 10:57:58 -0700 Subject: [PATCH] Update CI --- .github/workflows/build.yml | 15 +++++++++++---- chars/index.js | 2 +- package.json | 1 + 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30ce786..bc16cf0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,10 +21,10 @@ jobs: # Go steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -40,7 +40,14 @@ jobs: - name: Install run: npm install + - name: Test (Node.js <= 16.x) + if: matrix.node-version <= '16.x' + run: npm run test:nolint + env: + CI: true + - name: Test + if: matrix.node-version > '16.x' run: npm test env: CI: true @@ -67,10 +74,10 @@ jobs: # Go steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: lts/* registry-url: https://registry.npmjs.org/ diff --git a/chars/index.js b/chars/index.js index 6d88f92..7f49163 100644 --- a/chars/index.js +++ b/chars/index.js @@ -29,5 +29,5 @@ module.exports = { start, done, warn, - err + err, } diff --git a/package.json b/package.json index f804074..2c21ea6 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "url": "git+https://github.com/architect/utils.git" }, "scripts": { + "test:nolint": "npm run test:unit:updater && npm run test:unit", "test": "npm run lint && npm run test:unit:updater && npm run test:unit", "test:unit": "cross-env tape 'test/**/*-test.js' | tap-arc", "test:unit:updater": "cross-env tape test/updater/test.js | tap-arc",