Skip to content

Commit

Permalink
Merge f916ab6 into 21bd3c2
Browse files Browse the repository at this point in the history
  • Loading branch information
variadico authored Sep 11, 2019
2 parents 21bd3c2 + f916ab6 commit 8effce4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go
on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: '1.13'
- name: Run tests
run: |
# This project needs to be built in the GOPATH.
mkdir --parents $(go env GOPATH)/src/github.com/nats-io
ln --symbolic $(pwd) $(go env GOPATH)/src/github.com/nats-io/prometheus-nats-exporter
cd $(go env GOPATH)/src/github.com/nats-io/prometheus-nats-exporter
export GO111MODULE="off"
unset GOFLAGS
echo "Installing deps"
go get -v github.com/nats-io/gnatsd
go get -v github.com/nats-io/go-nats
go get -v github.com/nats-io/go-nats-streaming
go get -v github.com/nats-io/nats-replicator
go get -v github.com/nats-io/nats-streaming-server
go get -v github.com/nats-io/prometheus-nats-exporter
go get -v github.com/prometheus/client_golang/prometheus
go get -v github.com/prometheus/client_model/go
echo "Testing"
go test -v ./...

0 comments on commit 8effce4

Please sign in to comment.