forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 950 Bytes
/
coverage.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
39
40
# Runs tests and computes the code coverage
name: coverage
on:
pull_request:
push:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
measure_coverage:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get GOVERSION content
id: goversion
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT"
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
cache-key-suffix: "-coverage-${{ steps.goversion.outputs.version }}"
- run: ./script/linuxcoverage.bash
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: probe-cli.cov
parallel: true
finish_measuring_coverage:
needs: measure_coverage
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true