Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit dcdee0c

Browse files
authored
experiment: setup github action
1 parent 9c6cb79 commit dcdee0c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/go.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: build binary
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: set up go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: ^1.15
20+
id: go
21+
22+
- name: check out to go module directory
23+
uses: actions/checkout@v2
24+
25+
- name: get dependencies
26+
run: |
27+
go get -v -t -d ./...
28+
29+
- name: build
30+
run: go build -v .
31+
32+
- name: test
33+
run: go test -v .

0 commit comments

Comments
 (0)