-
Notifications
You must be signed in to change notification settings - Fork 192
38 lines (34 loc) · 1.15 KB
/
upload_coverage_report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Uploads the coverage report file to Codecov
on:
workflow_call:
inputs:
scheme:
description: 'The name of the scheme whose coverage needs to be uploaded.'
required: true
type: string
flags:
description: 'What flags to include in the coverage report, separated by commas'
required: false
type: string
default: 'tests'
permissions:
contents: read
jobs:
upload-coverage:
name: Upload Coverage | ${{ inputs.scheme }}
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
persist-credentials: false
- name: Retrieve Coverage report
uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 # 4.1.0
with:
name: ${{ inputs.scheme }}-Coverage-${{ github.sha }}
path: ${{ github.workspace }}
- name: Upload report to Codecov
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ inputs.flags }}