Skip to content

Commit

Permalink
chore: test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kitop committed Nov 23, 2023
1 parent 0c9c03f commit cd34e8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 49 deletions.
48 changes: 1 addition & 47 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions packages/build/tests/blobs_upload/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down

0 comments on commit cd34e8d

Please sign in to comment.