Github Actions

This commit is contained in:
Laszlo Fogas 2019-08-27 09:26:01 +02:00
parent bc80063ccb
commit f01468e987

45
.github/workflows/go.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12.4
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 1
path: go/src/github.com/laszlocph/woodpecker
- name: Debug
run: |
pwd
echo ${HOME}
echo ${GITHUB_WORKSPACE}
echo ${GOPATH}
echo ${GOROOT}
env:
GOPATH: /home/runner/work/woodpecker/go
- name: Test
run: |
go get -u golang.org/x/tools/cmd/cover
go get -u golang.org/x/net/context
go get -u golang.org/x/net/context/ctxhttp
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go test -cover $(go list ./... | grep -v /vendor/)
env:
GOPATH: /home/runner/work/woodpecker/go
- name: Build
run: ./.drone.sh
env:
GOPATH: /home/runner/work/woodpecker/go