This repository was archived by the owner on Oct 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+ on : [push]
3+ jobs :
4+
5+ build :
6+ name : Build
7+ runs-on : ubuntu-latest
8+ steps :
9+
10+ - name : Set up Go 1.12
11+ uses : actions/setup-go@v1
12+ with :
13+ go-version : 1.12
14+ id : go
15+
16+ - name : Check out code into the Go module directory
17+ uses : actions/checkout@v1
18+ with :
19+ path : src/github.com/target/go-arty
20+
21+ - name : Get dependencies
22+ run : |
23+ go get -v -t -d ./...
24+ if [ -f Gopkg.toml ]; then
25+ mkdir /home/runner/work/go-arty/bin
26+ export GOPATH=/home/runner/work/go-arty
27+ export PATH=$PATH:/home/runner/work/go-arty/bin
28+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
29+ dep ensure
30+ fi
31+
32+ - name : Build
33+ run : |
34+ export GOPATH=/home/runner/work/go-arty
35+ go test -v -race ./...
36+ # Check that go vet ./... produces a zero diff; clean up any changes afterwards.
37+ go vet ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code)
38+ # Check that go fmt ./... produces a zero diff; clean up any changes afterwards.
39+ go fmt ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code)
40+ # Check that go generate ./... produces a zero diff; clean up any changes afterwards.
41+ go generate -x ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code)
42+
You can’t perform that action at this time.
0 commit comments