Skip to content

Commit

Permalink
fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Oct 26, 2023
1 parent 8ef1da8 commit 9ba959b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- checkout
- node/install:
node-version: "14"
node-version: "18"
install-yarn: true
- run:
name: "Display information"
Expand All @@ -32,11 +32,12 @@ jobs:
- run:
name: Run YARN tests
command: |
npm config set scripts-prepend-node-path auto \
&& yarn --ignore-engines \
yarn --ignore-engines \
&& cd << parameters.test-dir >> \
&& yarn --ignore-engines \
&& yarn test
&& grep -q '"test:report":' ./package.json \
&& yarn run test:report \
|| yarn test
workflows:
run-node-tests:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:type",
"mochaFor": "mocha -r global-jsdom/register",
"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'",
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'",
"test": "npm run build && npm run mocha",
"prepublishOnly": "npm run test"
},
Expand Down

0 comments on commit 9ba959b

Please sign in to comment.