Skip to content

Commit 2355d1c

Browse files
authored
1 parent fe3af93 commit 2355d1c

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/workflows/codecov.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,22 @@ jobs:
2121
- name: Install dependencies
2222
run: yarn install
2323

24+
- name: Build Library
25+
run: npx lerna run build --scope=aws-cdk-lib
26+
2427
- name: Build CLI
2528
run: npx lerna run build --scope=aws-cdk
2629

27-
- name: Run tests
30+
- name: Run Core tests
31+
run: cd packages/aws-cdk-lib && yarn test core
32+
33+
- name: Run CLI tests
2834
run: cd packages/aws-cdk && yarn test
2935

3036
- name: Upload results to Codecov
3137
uses: codecov/codecov-action@v4
3238
with:
33-
directory: packages/aws-cdk/coverage
39+
files: packages/aws-cdk/coverage/cobertura-coverage.xml,packages/aws-cdk-lib/coverage/cobertura-coverage.xml
3440
fail_ci_if_error: true
3541
flags: suite.unit
3642
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ coverage:
99
default:
1010
# require the overall patch coverage to be at least 95%
1111
target: 95
12-
1312

1413
# https://docs.codecov.com/docs/codecovyml-reference#comment
1514
comment:
@@ -26,10 +25,14 @@ component_management:
2625
- type: patch
2726
target: 95
2827
individual_components:
29-
- component_id: packages_aws_cdk # identifier that should not be changed
28+
- component_id: packages_aws_cdk # identifier that should not be changed
3029
name: packages/aws-cdk # display name that can change freely
3130
paths:
3231
- packages/aws-cdk/**
32+
- component_id: packages_aws_cdk_lib_core # identifier that should not be changed
33+
name: packages/aws-cdk-lib/core # display name that can change freely
34+
paths:
35+
- packages/aws-cdk-lib/core/**
3336

3437
# https://docs.codecov.com/docs/ignoring-paths
3538
ignore:

packages/aws-cdk-lib/jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ module.exports = {
88
testMatch: [
99
'<rootDir>/**/test/**/?(*.)+(test).ts',
1010
],
11+
coveragePathIgnorePatterns: ['\\.generated\\.[jt]s$', '<rootDir>/.*/test/', '.warnings.jsii.js$', '/node_modules/'],
12+
1113
// Massive parallellism leads to common timeouts
1214
testTimeout: 60_000,
1315

0 commit comments

Comments
 (0)