-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (30 loc) · 823 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 0.4.2
- name: Setup etcd server and make
run: |
ETCD_VER=v3.4.14
curl -sL https://storage.googleapis.com/etcd/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o ./etcd.tar.gz
mkdir etcd && tar xzvf etcd.tar.gz -C etcd --strip-components=1
etcd/etcd > /dev/null &
sleep 30
CI_ENV=on make gh-ci