2022-03-14 13:51:27 +05:30
|
|
|
name: Codecov
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
|
|
|
permissions: read-all
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
codecov:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-04-12 22:37:37 +08:00
|
|
|
os: [ubuntu-latest]
|
2022-03-14 13:51:27 +05:30
|
|
|
steps:
|
2022-09-02 10:55:41 +02:00
|
|
|
- name: Checkout
|
2022-12-05 09:43:16 +01:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
2022-09-02 10:55:41 +02:00
|
|
|
|
2022-09-06 09:19:29 +02:00
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
2022-03-14 13:51:27 +05:30
|
|
|
- uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 # v2.1.5
|
|
|
|
with:
|
2022-09-25 12:11:28 +02:00
|
|
|
go-version: ~1.18.6
|
2022-09-02 10:55:41 +02:00
|
|
|
|
|
|
|
- name: Generate Code Coverage Report
|
2022-03-14 13:51:27 +05:30
|
|
|
run: make code-cov-report
|
2022-09-02 10:55:41 +02:00
|
|
|
|
|
|
|
- name: Upload Report to Codecov
|
2022-12-05 20:34:29 +00:00
|
|
|
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
|
2022-03-14 13:51:27 +05:30
|
|
|
with:
|
|
|
|
file: ./coverage.out
|
|
|
|
fail_ci_if_error: true
|
2022-08-25 13:54:49 +05:30
|
|
|
verbose: true
|