From cd34e8dc3193efff4bac55142fcb48fc239d5a05 Mon Sep 17 00:00:00 2001 From: Esteban Pastorino Date: Thu, 23 Nov 2023 14:52:34 -0300 Subject: [PATCH] chore: test for windows --- .github/workflows/workflow.yml | 48 +--------------------- packages/build/tests/blobs_upload/tests.js | 5 ++- 2 files changed, 4 insertions(+), 49 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f492657ea9..de5a5181cf 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -104,56 +104,10 @@ jobs: timeout-minutes: 30 strategy: matrix: - os: [ubuntu-latest, macOS-latest, windows-latest] + os: [windows-latest] node-version: ['*'] install-command: ['npm ci'] machine: ['0', '1', '2', '3', '4'] - include: - # We test on the oldest supported Node.js version, but only with a - # single combination (Ubuntu) - - os: ubuntu-latest - node-version: '14.16.0' - install-command: npm ci - machine: '0' - - os: ubuntu-latest - node-version: '14.16.0' - install-command: npm ci - machine: '1' - - os: ubuntu-latest - node-version: '14.16.0' - install-command: npm ci - machine: '2' - - os: ubuntu-latest - node-version: '14.16.0' - install-command: npm ci - machine: '3' - - os: ubuntu-latest - node-version: '14.16.0' - install-command: npm ci - machine: '4' - # The buildbot pins Netlify Build's dependencies, like `npm ci`. - # But other consumers do not, like `npm install`. - # So we test both. - - os: ubuntu-latest - node-version: '*' - install-command: npm install --no-package-lock - machine: '0' - - os: ubuntu-latest - node-version: '*' - install-command: npm install --no-package-lock - machine: '1' - - os: ubuntu-latest - node-version: '*' - install-command: npm install --no-package-lock - machine: '2' - - os: ubuntu-latest - node-version: '*' - install-command: npm install --no-package-lock - machine: '3' - - os: ubuntu-latest - node-version: '*' - install-command: npm install --no-package-lock - machine: '4' fail-fast: false steps: # Sets an output parameter if this is a release PR diff --git a/packages/build/tests/blobs_upload/tests.js b/packages/build/tests/blobs_upload/tests.js index 35c0ac6113..d6f688e488 100644 --- a/packages/build/tests/blobs_upload/tests.js +++ b/packages/build/tests/blobs_upload/tests.js @@ -53,11 +53,12 @@ test("blobs upload, don't run when there are files but deploy id is not provided t.snapshot(normalizeOutput(output)) }) -test.serial('blobs upload, uploads files to deploy store', async (t) => { +test.serial.only('blobs upload, uploads files to deploy store', async (t) => { const output = await new Fixture('./fixtures/src_with_blobs') .withFlags({ deployId: 'abc123', siteId: 'test' }) - .runWithBuild() + .runBuildServer({}) + console.log(t.context.blobRequestCount) t.is(t.context.blobRequestCount.set, 3) const store = getDeployStore({ deployID: 'abc123', siteID: 'test' })