-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix intermittent timeouts in osx test runners (#6007)
* chore: workflow steps are no longer relevant * fix: hoist build import to top of file * test: use serial only for macosx and only in github actions
- Loading branch information
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters