Skip to content

Commit a8e138f

Browse files
authored
Update tests.yml to use go1.16 (#363)
* Update tests.yml * continue running tests on older golang versions
1 parent 1353117 commit a8e138f

File tree

1 file changed

+51
-3
lines changed

1 file changed

+51
-3
lines changed

.github/workflows/tests.yml

+51-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
jobs:
77

88
test:
9-
name: run tests with code coverage
9+
name: run tests with go 1.16 and code coverage
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Set up Go 1.13
12+
- name: Set up Go 1.16
1313
uses: actions/setup-go@v1
1414
with:
15-
go-version: 1.13
15+
go-version: 1.16
1616
id: go
1717

1818
- name: Check out code into the Go module directory
@@ -25,3 +25,51 @@ jobs:
2525
uses: codecov/codecov-action@v1
2626
with:
2727
file: ./coverage.txt
28+
29+
test-v115:
30+
name: run tests with go 1.15
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Set up Go 1.15
34+
uses: actions/setup-go@v1
35+
with:
36+
go-version: 1.15
37+
id: go
38+
39+
- name: Check out code into the Go module directory
40+
uses: actions/checkout@v1
41+
42+
- name: go test
43+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
44+
45+
test-v114:
46+
name: run tests with go 1.14
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Set up Go 1.14
50+
uses: actions/setup-go@v1
51+
with:
52+
go-version: 1.14
53+
id: go
54+
55+
- name: Check out code into the Go module directory
56+
uses: actions/checkout@v1
57+
58+
- name: go test
59+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
60+
61+
test-v113:
62+
name: run tests with go 1.13
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Set up Go 1.13
66+
uses: actions/setup-go@v1
67+
with:
68+
go-version: 1.13
69+
id: go
70+
71+
- name: Check out code into the Go module directory
72+
uses: actions/checkout@v1
73+
74+
- name: go test
75+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...

0 commit comments

Comments
 (0)