Skip to content

Commit

Permalink
Disable worker_thread on centos:7
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed May 7, 2022
1 parent 2188fc9 commit 5f1ea60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ jobs:
- name: Test bindings
run: |
yarn lerna link
yarn test
yarn test -s
test-linux-x64-musl-binding:
name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
Expand Down
19 changes: 1 addition & 18 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
const USE_TS_NODE = (function () {
try {
require('@swc-node/core')
return false
} catch (e) {
return true
}
})()

module.exports = {
extensions: ['ts'],
workerThreads: true,
require: [
USE_TS_NODE ? 'ts-node/register/transpile-only' : '@swc-node/register',
'@node-rs/argon2',
'@node-rs/bcrypt',
'@node-rs/crc32',
'@node-rs/deno-lint',
'@node-rs/jieba',
'@node-rs/xxhash',
],
require: ['@swc-node/register'],
files: ['packages/**/*.spec.ts'],
timeout: '3m',
environmentVariables: {
Expand Down

0 comments on commit 5f1ea60

Please sign in to comment.