Skip to content

Commit 980a3d9

Browse files
committed
Add GitHub Actions workflow for Go build and test
1 parent b7f9d81 commit 980a3d9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/go.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: '^1.16'
22+
23+
- name: Build
24+
run: go build ./...
25+
26+
- name: Run Tests
27+
run: go test ./...

0 commit comments

Comments
 (0)