Skip to content

Commit 549f16a

Browse files
committed
Enabled Codecov for scaffold testing.
1 parent 679ed14 commit 549f16a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/test-scaffold.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ jobs:
4848
path: ./.scaffold-coverage-html
4949
if-no-files-found: error
5050

51-
# - name: Upload coverage report to Codecov
52-
# uses: codecov/codecov-action@v4
53-
# with:
54-
# directory: ./.scaffold-coverage-html
55-
# fail_ci_if_error: true
56-
# token: ${{ secrets.CODECOV_TOKEN }}
51+
- name: Upload coverage report to Codecov
52+
uses: codecov/codecov-action@v4
53+
if: ${{ env.CODECOV_TOKEN != '' }}
54+
with:
55+
directory: ./.scaffold-coverage-html
56+
fail_ci_if_error: true
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
env:
59+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/AlexSkrypnyk/drupal_extension_scaffold.svg)](https://github.com/AlexSkrypnyk/drupal_extension_scaffold/pulls)
1212
[![Build, test and deploy](https://github.com/AlexSkrypnyk/drupal_extension_scaffold/actions/workflows/test.yml/badge.svg)](https://github.com/AlexSkrypnyk/drupal_extension_scaffold/actions/workflows/test.yml)
1313
[![CircleCI](https://circleci.com/gh/AlexSkrypnyk/drupal_extension_scaffold.svg?style=shield)](https://circleci.com/gh/AlexSkrypnyk/drupal_extension_scaffold)
14+
[![codecov](https://codecov.io/gh/AlexSkrypnyk/drupal_extension_scaffold/graph/badge.svg?token=GSXTND4VOC)](https://codecov.io/gh/AlexSkrypnyk/drupal_extension_scaffold)
1415
![GitHub release (latest by date)](https://img.shields.io/github/v/release/AlexSkrypnyk/drupal_extension_scaffold)
1516
![LICENSE](https://img.shields.io/github/license/AlexSkrypnyk/drupal_extension_scaffold)
1617
![Renovate](https://img.shields.io/badge/renovate-enabled-green?logo=renovatebot)

0 commit comments

Comments
 (0)