Skip to content

Commit 7c1fd08

Browse files
committed
Use 'yarn run test:headless' in CI (matches green builds)
Restores the test command to use the test:headless npm script, which includes --code-coverage. The ChromeHeadlessCI custom launcher provides --no-sandbox, --disable-gpu, and 4GB V8 heap for the large test suite.
1 parent 127b1e7 commit 7c1fd08

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,8 @@ jobs:
106106
- name: Run build
107107
run: yarn run build:prod
108108

109-
# DataShare fork: run tests WITHOUT --code-coverage in CI.
110-
# Coverage instrumentation creates a bundle too large for Chrome on the
111-
# 7GB GitHub Actions runner (Chrome OOM after ~60% of tests). Upstream
112-
# DSpace works because their test suite is smaller. The --code-coverage
113-
# flag is preserved in package.json test:headless for local use.
114109
- name: Run specs (unit tests)
115-
run: yarn run test --browsers=ChromeHeadlessCI
110+
run: yarn run test:headless
116111

117112
# Upload code coverage report to artifact (for one version of Node only),
118113
# so that it can be shared with the 'codecov' job (see below)

0 commit comments

Comments
 (0)