Skip to content

Commit

Permalink
test: use serial only for macosx and only in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
netlify-bot committed Jan 7, 2025
1 parent 6d19eaa commit 6406bb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/build/ava.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { platform } from 'node:os'
import { env } from 'node:process'

import baseConfig from '../../ava.base.js'

const config = {
...baseConfig,
files: ['tests/**/tests.{cjs,mjs,js}'],
// github action runners for osx have lower memory than windows/linux
// https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
serial: env.GITHUB_ACTIONS && platform() === 'darwin',
}

export default config
2 changes: 1 addition & 1 deletion packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"test:dev": "ava -w",
"test:ci": "run-p test:ci:*",
"test:ci:types": "tsd",
"test:ci:ava": "c8 -r lcovonly -r text -r json ava --serial",
"test:ci:ava": "c8 -r lcovonly -r text -r json ava",
"test:ci:vitest": "vitest run"
},
"keywords": [
Expand Down

0 comments on commit 6406bb5

Please sign in to comment.