Skip to content

Commit ba2fc84

Browse files
authored
Create go.yml
1 parent 9f7018a commit ba2fc84

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

.github/workflows/go.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
11+
build_18:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.18
20+
21+
- name: Build
22+
run: go build -v ./...
23+
24+
- name: Test
25+
run: go test -v ./...
26+
27+
build_17:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- name: Set up Go
33+
uses: actions/setup-go@v3
34+
with:
35+
go-version: 1.17
36+
37+
- name: Build
38+
run: go build -v ./...
39+
40+
- name: Test
41+
run: go test -v ./...
42+
43+
build_16:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v3
47+
48+
- name: Set up Go
49+
uses: actions/setup-go@v3
50+
with:
51+
go-version: 1.16
52+
53+
- name: Build
54+
run: go build -v ./...
55+
56+
- name: Test
57+
run: go test -v ./...
58+
59+
build_15:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v3
63+
64+
- name: Set up Go
65+
uses: actions/setup-go@v3
66+
with:
67+
go-version: 1.15
68+
69+
- name: Build
70+
run: go build -v ./...
71+
72+
- name: Test
73+
run: go test -v ./...
74+
75+
build_14:
76+
runs-on: ubuntu-latest
77+
steps:
78+
- uses: actions/checkout@v3
79+
80+
- name: Set up Go
81+
uses: actions/setup-go@v3
82+
with:
83+
go-version: 1.14
84+
85+
- name: Build
86+
run: go build -v ./...
87+
88+
- name: Test
89+
run: go test -v ./...
90+
91+
build_13:
92+
runs-on: ubuntu-latest
93+
steps:
94+
- uses: actions/checkout@v3
95+
96+
- name: Set up Go
97+
uses: actions/setup-go@v3
98+
with:
99+
go-version: 1.13
100+
101+
- name: Build
102+
run: go build -v ./...
103+
104+
- name: Test
105+
run: go test -v ./...

0 commit comments

Comments
 (0)