Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci) restore Codecov support alongside Coveralls #410

Merged
merged 3 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/job-clang-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
analyzer:
name: 'Clang analyzer'
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 30
steps:
- run: |
sudo apt-get update
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/job-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ jobs:
flag-name: ${{ steps.lcov.outputs.name }}
path-to-lcov: './lcov.info'
parallel: true
- name: Codecov Upload
if: ${{ !env.ACT && inputs.coverage }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: './lcov.info'
- uses: actions/upload-artifact@v2
if: ${{ failure() && !env.ACT }}
with:
Expand Down
28 changes: 28 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://docs.codecov.io/docs/codecovyml-reference
codecov:
require_ci_to_pass: yes
notify:
wait_for_ci: yes
after_n_builds: 9

coverage:
precision: 4
round: down
range: "75...100"
status:
project:
default:
target: auto
threshold: 3%
base: auto
flags:
- unit
paths:
- src

comment:
layout: "reach, diff, files"
behavior: default
require_changes: false
require_base: no
require_head: yes
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Using a non-local resolver
lua-resty-dns-resolver client timeout
Behaves strangely on GHA Valgrind. Seems fine locally.
Will run with TEST_NGINX_USE_VALGRIND_ALL.
--- skip_valgrind: 5
--- load_nginx_modules: ngx_http_echo_module
--- main_config eval
qq{
Expand Down
Loading