-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (36 loc) · 998 Bytes
/
go_1.16_above.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
name: Go 1.16+
on:
push:
branches:
- 'master'
- 'feature/**'
- 'dev/**'
env:
CODECOV_TOKEN: '69b7ce5f-1937-4405-a44c-6d38dcd0f94b'
MAIN_GO_VER: '1.21'
MAIN_HOST_OS: 'ubuntu-latest'
jobs:
go_test_and_coverage:
strategy:
max-parallel: 6
matrix:
GO_VER: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23']
HOST_OS: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.HOST_OS }}
steps:
- name: Checkout Repositary
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.GO_VER }}
id: go
- name: Get Dependencies
run: |
echo GO_VER = ${{ matrix.GO_VER }}
go get golang.org/x/tools/cmd/cover
go install github.com/mattn/goveralls || go get github.com/mattn/goveralls
go get .
- name: Go test
run: |
go test -v -failfast -cover -covermode=atomic -coverprofile=coverage.out