From f97694a39813a1be0afbb5bb37104f7a390d3ea5 Mon Sep 17 00:00:00 2001 From: Chris Vogt Date: Wed, 18 Mar 2026 18:29:33 -0700 Subject: [PATCH 1/2] fix(ci): allows optional installs for Sharp binaries --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15df394..96fd5f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm ci --no-optional + run: npm ci - name: Test run: npm test From 348032f71b83fea7eb1c62c564d85277b4cf3209 Mon Sep 17 00:00:00 2001 From: Chris Vogt Date: Wed, 18 Mar 2026 18:41:33 -0700 Subject: [PATCH 2/2] SQUASHME: fixup script --- .github/workflows/ci.yml | 2 ++ package.json | 2 +- test/image-server.requests.js | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96fd5f0..a5e03a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: jobs: test: runs-on: ubuntu-latest + env: + IS_CI_ENV: '1' strategy: fail-fast: false matrix: diff --git a/package.json b/package.json index f3a9fb1..7e2ee88 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "mocha": "mocha -w -R spec", "prettier": "npx prettier --write lib test", "report": "nyc report --reporter=cobertura && nyc report --reporter=lcov", - "test": "npm run prettier && npm run test-and-check && npm outdated", + "test": "npm run prettier && npm run test-and-check && (npm outdated || true)", "test-and-check": "npm run unit && npm run report && npm run check-cov", "unit": "npx nyc ./node_modules/mocha/bin/_mocha" }, diff --git a/test/image-server.requests.js b/test/image-server.requests.js index a1a19f6..87b46a6 100644 --- a/test/image-server.requests.js +++ b/test/image-server.requests.js @@ -315,8 +315,8 @@ module.exports = [ }, ]; -if (process.env.TRAVIS === undefined) { - // not supported by travis CI +if (process.env.IS_CI_ENV === undefined) { + // Some image formats/steps are slower or not supported in CI. module.exports = module.exports.concat([ { steps: 'fm=f:avif',