From 576d54169018e5931a632047714c26a027e414e8 Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Mon, 29 Apr 2024 15:25:46 -0700 Subject: [PATCH] Update CI --- .github/workflows/build.yml | 15 +++++++++++---- package.json | 1 + 2 files changed, 12 insertions(+), 4 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/package.json b/package.json index 843eeaa..50083ca 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ }, "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 AWS_ACCESS_KEY_ID=\"blah\" AWS_SECRET_ACCESS_KEY=\"blah\" tape 'test/unit/**/*-test.js' | tap-arc", "test:slow": "cross-env tape 'test/slow/**/*-test.js' | tap-arc", "test:integration": "cross-env AWS_ACCESS_KEY_ID=\"blah\" AWS_SECRET_ACCESS_KEY=\"blah\" tape 'test/integration/**/*-test.js' | tap-arc",