Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
74544289
Unverified
Commit
74544289
authored
1 year ago
by
Sergei Zharinov
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: Fix codecov uploads (#27278)
Co-authored-by:
Michael Kriese
<
michael.kriese@visualon.de
>
parent
79489073
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/build.yml
+49
-15
49 additions, 15 deletions
.github/workflows/build.yml
with
49 additions
and
15 deletions
.github/workflows/build.yml
+
49
−
15
View file @
74544289
...
...
@@ -373,17 +373,12 @@ jobs:
./coverage/lcov
./coverage/json
co
verage
:
co
decov
:
needs
:
[
test
]
runs-on
:
ubuntu-latest
timeout-minutes
:
3
if
:
(success() || failure()) && github.event.pull_request.draft !=
true
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# v4.1.1
with
:
sparse-checkout
:
${{ env.SPARSE_CHECKOUT }}
-
name
:
Download coverage reports
uses
:
actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
# v4.1.2
with
:
...
...
@@ -392,10 +387,24 @@ jobs:
merge-multiple
:
true
-
name
:
Codecov
uses
:
codecov/codecov-action@
e0b68c6749509c5f83f984dd99a76a1c1a231044
# v4.0.1
uses
:
codecov/codecov-action@
ab904c41d6ece82784817410c45d8b8c02684457
# v3.1.6
with
:
directory
:
coverage/lcov
token
:
${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error
:
true
verbose
:
true
coverage-threshold
:
needs
:
-
test
runs-on
:
ubuntu-latest
timeout-minutes
:
3
if
:
(success() || failure()) && github.event.pull_request.draft !=
true
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# v4.1.1
with
:
sparse-checkout
:
${{ env.SPARSE_CHECKOUT }}
filter
:
blob:none
# we don't need all blobs
-
name
:
Setup Node.js
uses
:
./.github/actions/setup-node
...
...
@@ -403,6 +412,13 @@ jobs:
node-version
:
${{ env.NODE_VERSION }}
os
:
${{ runner.os }}
-
name
:
Download coverage reports
uses
:
actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
# v4.1.2
with
:
pattern
:
coverage-*
path
:
coverage
merge-multiple
:
true
-
name
:
Merge coverage reports
run
:
pnpm nyc merge ./coverage/json ./coverage/nyc/coverage.json
...
...
@@ -419,7 +435,11 @@ jobs:
# Catch-all required check for test matrix and coverage
test-success
:
needs
:
[
setup
,
test
,
coverage
]
needs
:
-
setup
-
test
-
codecov
-
coverage-threshold
runs-on
:
ubuntu-latest
timeout-minutes
:
1
if
:
always()
...
...
@@ -437,17 +457,30 @@ jobs:
needs.test.result == 'skipped'
run
:
exit
1
-
name
:
Fail for failed or cancelled coverage
-
name
:
Fail for failed or cancelled codecov
if
:
|
needs.codecov.result == 'failure' ||
needs.codecov.result == 'cancelled'
run
:
exit
1
-
name
:
Fail for skipped codecov when PR is ready for review
if
:
|
github.event_name == 'pull_request' &&
github.event.pull_request.draft != true &&
needs.codecov.result == 'skipped'
run
:
exit
1
-
name
:
Fail for failed or cancelled coverage-threshold
if
:
|
needs.coverage.result == 'failure' ||
needs.coverage.result == 'cancelled'
needs.coverage
-threshold
.result == 'failure' ||
needs.coverage
-threshold
.result == 'cancelled'
run
:
exit
1
-
name
:
Fail for skipped coverage when PR is ready for review
-
name
:
Fail for skipped coverage
-threshold
when PR is ready for review
if
:
|
github.event_name == 'pull_request' &&
github.event.pull_request.draft != true &&
needs.coverage.result == 'skipped'
needs.coverage
-threshold
.result == 'skipped'
run
:
exit
1
build
:
...
...
@@ -547,7 +580,8 @@ jobs:
-
test-e2e
-
test-success
-
build-docs
-
coverage
-
codecov
-
coverage-threshold
if
:
github.repository == 'renovatebot/renovate' && github.event_name != 'pull_request'
runs-on
:
ubuntu-latest
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment