Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 715cd17

Browse files
committed
build for CI
1 parent 922abd6 commit 715cd17

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on: [push]
2+
jobs:
3+
build:
4+
runs-on: ubuntu-16.04
5+
name: Build
6+
steps:
7+
- uses: actions/checkout@master
8+
- id: gocache
9+
name: Go Cache
10+
uses: actions/cache@v1
11+
with:
12+
path: ~/go/pkg/mod
13+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
14+
restore-keys: |
15+
${{ runner.os }}-go-
16+
- name: Setup Go
17+
uses: actions/setup-go@v1
18+
with:
19+
go-version: '1.13.4'
20+
- name: Test
21+
run: go test -v .
22+
- name: Build
23+
run: go build .

0 commit comments

Comments
 (0)