Skip to content

Commit e9e89a8

Browse files
authored
Create go.yml
1 parent e655d19 commit e9e89a8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/go.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest,windows-latest]
16+
go-version: ["1.17"]
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up workflow for ${{ matrix.go-version }} on ${{ matrix.os }}
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: 1.17
24+
25+
- name: Build
26+
run: go build -v ./...
27+
28+
- name: Test
29+
run: go test -v ./...

0 commit comments

Comments
 (0)