-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (32 loc) · 1020 Bytes
/
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
name: codecov.io
on:
push:
pull_request:
permissions:
contents: read
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Connect to Tailnet
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: tailscale/github-action@v3
with:
args: --accept-dns=true
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:github-runner
version: latest
- name: Runing tests for coverage
run: |
go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/` -v
- name: Uploading coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}