diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5990ec..0e73fc8 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 }} @@ -41,7 +41,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 @@ -68,10 +75,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/package.json b/package.json index 9fcd634..18ba8be 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "src/index.js", "scripts": { "test": "npm run lint && npm run test:integration && npm run coverage", + "test:nolint": "npm run test:integration && npm run coverage", "test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-arc", "test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-arc", "coverage": "nyc --reporter=lcov --reporter=text npm run test:unit",