Skip to content

Commit ba13f6b

Browse files
Updated unit integration test workflow
1 parent 8f876d8 commit ba13f6b

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ permissions:
1515
contents: read
1616
pull-requests: write
1717

18-
env:
19-
CHIP_NO_LOG_TIMESTAMPS: true
18+
# env:
19+
# CHIP_NO_LOG_TIMESTAMPS: true
2020

2121
jobs:
2222
linux-coverage:

.github/workflows/unit_integration_test.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ concurrency:
2626
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
2727
cancel-in-progress: true
2828

29+
permissions:
30+
contents: read
31+
pull-requests: write
32+
2933
jobs:
3034
unit_tests:
3135
name: Unit / Integration Tests
3236
if: github.actor != 'restyled-io[bot]'
3337

3438
strategy:
3539
matrix:
36-
type: [main, clang, mbedtls, rotating_device_id, icd]
40+
type: [main, clang, mbedtls, rotating_device_id, icd, coverage]
3741
env:
3842
BUILD_TYPE: ${{ matrix.type }}
3943

@@ -71,6 +75,7 @@ jobs:
7175
"mbedtls") GN_ARGS='chip_crypto="mbedtls" chip_build_all_platform_tests=true';;
7276
"rotating_device_id") GN_ARGS='chip_crypto="boringssl" chip_enable_rotating_device_id=true chip_build_all_platform_tests=true';;
7377
"icd") GN_ARGS='chip_enable_icd_server=true chip_enable_icd_lit=true chip_build_all_platform_tests=true';;
78+
"coverage") GN_ARGS='use_coverage=true';;
7479
*) ;;
7580
esac
7681
@@ -87,3 +92,12 @@ jobs:
8792
# - name: Upload Code Coverage
8893
# if: ${{ contains('main', env.BUILD_TYPE) }}
8994
# run: bash <(curl -s https://codecov.io/bash)
95+
96+
- name: Upload Coverage
97+
if: ${{ contains('coverage', env.BUILD_TYPE) }}
98+
uses: codecov/codecov-action@v5
99+
with:
100+
token: ${{ secrets.CODECOV_TOKEN }}
101+
files: out/coverage/coverage/coverage.xml
102+
fail_ci_if_error: false
103+
verbose: true

0 commit comments

Comments
 (0)