mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-20 07:26:34 +00:00
Github Actions
This commit is contained in:
parent
bc80063ccb
commit
f01468e987
1 changed files with 45 additions and 0 deletions
45
.github/workflows/go.yml
vendored
Normal file
45
.github/workflows/go.yml
vendored
Normal 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
|
Loading…
Reference in a new issue