-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 966 Bytes
/
coverage.yml
File metadata and controls
40 lines (37 loc) · 966 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
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: worker
- 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: worker/go.mod
- name: Generate coverage
working-directory: worker
run: go test ./... -short -coverprofile=coverage.out -covermode=atomic || true
- uses: codecov/codecov-action@v4
with:
files: worker/coverage.out
flags: worker
fail_ci_if_error: false