Skip to content

Commit d9258e6

Browse files
authored
Add basic GitHub actions build (#14)
1 parent 4dea14e commit d9258e6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/go.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build
2+
on: [push, pull_request]
3+
jobs:
4+
5+
build:
6+
name: Build and Test
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Set up Go 1.20
11+
uses: actions/setup-go@v3
12+
with:
13+
go-version: 1.20.1
14+
id: go
15+
16+
- name: Check out code
17+
uses: actions/checkout@v2
18+
19+
- name: Get dependencies
20+
run: |
21+
go mod download
22+
23+
- name: Build
24+
run: |
25+
go build ./...

0 commit comments

Comments
 (0)