Skip to content

Commit bc777bc

Browse files
author
Auggie
committed
refactor: simplify CI workflow and remove unnecessary documentation
- remove TEST_COVERAGE.md file (redundant with actual test files) - remove test-all npm script (unnecessary complexity) - update CI to run npm test and npm run integration-ci separately - maintain separate coverage collection for unit and integration tests - upload combined coverage to codecov after both test runs complete - cleaner separation of concerns between unit and integration testing Signed-off-by: Lars Trieloff <[email protected]>
1 parent fd8da3c commit bc777bc

File tree

3 files changed

+7
-140
lines changed

3 files changed

+7
-140
lines changed

.github/workflows/main.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ jobs:
2525
- run: npm install @adobe/helix-deploy
2626
- run: npm run lint
2727

28-
# Run all tests with combined coverage reporting
29-
- name: Run all tests with coverage
30-
run: npm run test-all
28+
# Run unit tests with coverage
29+
- name: Run unit tests
30+
run: npm test
31+
32+
# Run integration tests with coverage
33+
- name: Run integration tests
34+
run: npm run integration-ci
3135
env:
3236
HLX_FASTLY_AUTH: ${{ secrets.HLX_FASTLY_AUTH }}
3337
CLOUDFLARE_AUTH: ${{ secrets.CLOUDFLARE_AUTH }}

TEST_COVERAGE.md

Lines changed: 0 additions & 136 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"type": "module",
77
"scripts": {
88
"test": "c8 --exclude 'test/fixtures/**' mocha -i -g Integration",
9-
"test-all": "c8 --exclude 'test/fixtures/**' mocha",
109
"integration-ci": "c8 --exclude 'test/fixtures/**' mocha -g Integration",
1110
"lint": "eslint .",
1211
"semantic-release": "semantic-release",

0 commit comments

Comments
 (0)