Skip to content

Commit

Permalink
Update CI test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Jan 15, 2025
1 parent fe75475 commit 56a55a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ commands:
command: npm run lint:css

test:
parameters:
runInBand:
type: boolean
default: false
steps:
- run:
name: Jest
command: npm run test:coverage -- --ci --reporters=default --reporters=jest-junit
command: npm run test:coverage -- --ci --reporters=default --reporters=jest-junit <<# parameters.runInBand >>-i<</ parameters.runInBand >>
environment:
JEST_JUNIT_OUTPUT_DIR: tmp/test-results
MARP_TEST_CI: 1
Expand Down Expand Up @@ -129,7 +133,8 @@ jobs:
- prepare:
browser: true
- lint
- test
- test:
runInBand: true

test-node20:
executor:
Expand All @@ -140,7 +145,8 @@ jobs:
- prepare:
browser: true
- lint
- test
- test:
runInBand: true

test-node22:
executor:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
# - name: Output concurrency group
# run: echo "${{ github.workflow }}-${{ (github.ref_name == 'main' && github.run_id) || format('{0}-{1}', github.actor, github.head_ref || github.ref_name) }}"

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -43,7 +47,7 @@ jobs:
env:
MARP_TEST_CI: 1
run: >-
npm run test:coverage -- --ci --reporters=default --reporters=jest-junit ||
npm run test:coverage -- --ci --max-workers ${{ steps.cpu-cores.outputs.count }} --reporters=default --reporters=jest-junit ||
npm run test:coverage -- --ci -i --reporters=default --reporters=jest-junit --forceExit --no-cache ||
npm run test:coverage -- --ci -i --reporters=default --reporters=jest-junit --forceExit --no-cache ||
npm run test:coverage -- --ci -i --reporters=default --reporters=jest-junit --forceExit --no-cache
Expand Down

0 comments on commit 56a55a5

Please sign in to comment.