-
Notifications
You must be signed in to change notification settings - Fork 205
48 lines (44 loc) · 1.1 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: ["v3"]
pull_request:
branches: ["v3"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.21"
- "1.20"
- "1.19"
- "1.18"
- "1.17"
- "1.16"
- "1.15"
- "1.14"
- "1.13"
steps:
- name: Set up Go
uses: actions/setup-go@v2
env:
GO111MODULE: "on"
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Install dependencies
run: go mod download
- name: Install goveralls
run: |
go get github.com/mattn/goveralls
go install github.com/mattn/goveralls
- name: Test and Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -race -service=github