Skip to content

Commit

Permalink
Update radix-api-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeknudsen authored Oct 9, 2019
1 parent 92835f4 commit 2f4cd9b
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/radix-api-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,27 @@ jobs:

- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 1
path: go/src/github.com/equinor/radix-api

- name: Get dependencies
run: |
export GOPATH=/home/runner/work/
export GOBIN=$GOROOT/bin/
mkdir $GOPATH/src
mv $GOPATH/radix-api/radix-api $GOPATH/src/radix-api
cd $GOPATH/src/radix-api
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
run: |
go get -u github.com/golang/dep/cmd/dep
dep ensure -vendor-only
- name: Linting
run: |
export GOPATH=/home/runner/work/
export GOBIN=$GOROOT/bin/
cd $GOPATH/src/radix-api
golint `go list ./...`
- name: Vetting
run: |
export GOPATH=/home/runner/work/
export GOBIN=$GOROOT/bin/
cd $GOPATH/src/radix-api
go vet `go list ./...`
- name: Testing
run: |
export GOPATH=/home/runner/work/
export GOBIN=$GOROOT/bin/
cd $GOPATH/src/radix-api
CGO_ENABLED=0 GOOS=linux go test ./...
- name: Building
run: |
export GOPATH=/home/runner/work/
export GOBIN=$GOROOT/bin/
cd $GOPATH/src/radix-api
run: |
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -a

0 comments on commit 2f4cd9b

Please sign in to comment.