Skip to content

Commit 9b36d1c

Browse files
committed
Fix: use 'yarn run test --browsers=ChromeHeadlessCI' in CI
The direct 'yarn ng test' command fails on CI in 2s. Use the package.json 'test' script instead, which already has --source-map=true, --watch=false, and --configuration test. Add --browsers=ChromeHeadlessCI for headless mode. Coverage (--code-coverage) is kept in test:headless for local use.
1 parent 5249a86 commit 9b36d1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
# DSpace works because their test suite is smaller. The --code-coverage
113113
# flag is preserved in package.json test:headless for local use.
114114
- name: Run specs (unit tests)
115-
run: yarn ng test --source-map=true --watch=false --configuration test --browsers=ChromeHeadlessCI
115+
run: yarn run test --browsers=ChromeHeadlessCI
116116

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

0 commit comments

Comments
 (0)