-
Notifications
You must be signed in to change notification settings - Fork 204
66 lines (57 loc) · 1.6 KB
/
codecov.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Codecov
on:
pull_request:
branches: [ master ]
types:
- closed
jobs:
build:
name: Build
if: github.event.pull_request.merged == true
strategy:
matrix:
go-version: [1.22.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
GO111MODULE: on
GOPATH: ${{ github.workspace }}
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/gonum.org/v1/plot
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/gonum.org/v1/plot
- name: Cache-Go
uses: actions/cache@v4
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
'%LocalAppData%\go-build'
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Coverage
if: matrix.platform == 'ubuntu-latest'
run: |
./.ci/test-coverage.sh
- name: Upload-Coverage
if: matrix.platform == 'ubuntu-latest'
uses: codecov/codecov-action@v1
with:
override_pr: ${{ github.event.pull_request.number }}
override_commit: ${{ github.event.pull_request.merge_commit_sha }}
override_branch: "refs/heads/master"