-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 964 Bytes
/
coverage.yml
File metadata and controls
41 lines (38 loc) · 964 Bytes
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
name: coverage
on:
pull_request:
branches: [master, main]
push:
branches: [master, main]
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
path: cli
- uses: actions/checkout@v4
with:
repository: InstaNode-dev/common
path: common
continue-on-error: true
- uses: actions/checkout@v4
with:
repository: InstaNode-dev/proto
path: proto
continue-on-error: true
- uses: actions/setup-go@v5
with:
go-version-file: cli/go.mod
- name: Generate coverage
working-directory: cli
run: go test ./... -short -coverprofile=coverage.out -covermode=atomic
- uses: codecov/codecov-action@v4
if: always()
with:
files: cli/coverage.out
flags: cli
fail_ci_if_error: false