-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 992 Bytes
/
go.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
name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
golangci_lint: [v1.53]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
with:
version: ${{ matrix.golangci_lint }}
args: --timeout=2m
only-new-issues: false
working-directory: .
- name: Test
run: go test -v ./... -gcflags=all=-l
- name: Coverage
run: go test ./... -gcflags=all=-l -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.0.2
with:
file: ./coverage.txt
flags: unittests
env_vars: OS,GOLANG
name: codecov-umbrell
fail_ci_if_error: false