forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.61 KB
/
Copy pathbarecheck.yml
File metadata and controls
52 lines (51 loc) · 1.61 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Code coverage report
on:
workflow_run:
workflows:
- Run tests
types:
- completed
permissions:
contents: read
actions: read
jobs:
barecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: master
- name: Fetch PR number
id: fetchPrNo
uses: ./.github/actions/unzip-artifact
with:
name: prNo
- name: Read PR number
if: ${{ steps.fetchPrNo.outputs.exists == 'true' }}
id: prNo
run: |
echo prNo=$(<${{ runner.temp }}/artifacts/prNo) >> $GITHUB_OUTPUT
- name: Fetch base branch coverage
id: fetch-base
if: ${{ steps.fetchPrNo.outputs.exists == 'true' }}
uses: ./.github/actions/unzip-artifact
with:
name: "base-coverage.info"
- name: Fetch PR coverage
id: fetch-pr
if: ${{ steps.fetchPrNo.outputs.exists == 'true' }}
uses: ./.github/actions/unzip-artifact
with:
name: "coverage.info"
- name: Generate Code Coverage report
if: ${{ steps.fetch-base.outputs.exists == 'true' && steps.fetch-pr.outputs.exists == 'true' }}
id: code-coverage
uses: barecheck/code-coverage-action@v1
with:
pull-number: ${{ steps.prNo.outputs.prNo }}
barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }}
lcov-file: "${{ runner.temp }}/artifacts/coverage.info"
base-lcov-file: "${{ runner.temp }}/artifacts/base-coverage.info"
send-summary-comment: true
show-annotations: ""