-
Notifications
You must be signed in to change notification settings - Fork 4k
42 lines (33 loc) · 1.01 KB
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Codecov
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
collect:
name: collect
if: github.repository == 'aws/aws-cdk'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: yarn install
- name: Build Library
run: npx lerna run build --scope=aws-cdk-lib
- name: Build CLI
run: npx lerna run build --scope=aws-cdk
- name: Run Core tests
run: cd packages/aws-cdk-lib && yarn test core
- name: Run CLI tests
run: cd packages/aws-cdk && yarn test
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
files: packages/aws-cdk/coverage/cobertura-coverage.xml,packages/aws-cdk-lib/coverage/cobertura-coverage.xml
fail_ci_if_error: true
flags: suite.unit
token: ${{ secrets.CODECOV_TOKEN }}