Skip to content

Commit

Permalink
Merge pull request #425 from graphql-go/enable-go-module
Browse files Browse the repository at this point in the history
Use Go Modules.
  • Loading branch information
chris-ramon committed Dec 2, 2018
2 parents 993e01c + 31bba03 commit 8000299
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .circleci/config.yml
@@ -1,32 +1,43 @@
defaults: &defaults
test_with_go_modules: &test_with_go_modules
steps:
- checkout
- run: go test ./...
- run: go vet ./...

test_without_go_modules: &test_without_go_modules
working_directory: /go/src/github.com/graphql-go/graphql
steps:
- checkout
- run: go get -v -t -d ./...
- run: go test ./...
- run: go vet ./...


defaults: &defaults
<<: *test_with_go_modules

version: 2
jobs:
golang:1.8.7:
<<: *defaults
<<: *test_without_go_modules
docker:
- image: circleci/golang:1.8.7
golang:1.9.7:
<<: *defaults
<<: *test_without_go_modules
docker:
- image: circleci/golang:1.9.7
golang:1.11:
<<: *defaults
docker:
- image: circleci/golang:1.11
golang:latest:
<<: *defaults
docker:
- image: circleci/golang:latest
coveralls:
working_directory: /go/src/github.com/graphql-go/graphql
docker:
- image: circleci/golang:latest
steps:
- checkout
- run: go get -v -t -d ./...
- run: go get github.com/mattn/goveralls
- run: go test -v -cover -race -coverprofile=coverage.out
- run: /go/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN
Expand All @@ -37,5 +48,6 @@ workflows:
jobs:
- golang:1.8.7
- golang:1.9.7
- golang:1.11
- golang:latest
- coveralls
1 change: 1 addition & 0 deletions go.mod
@@ -0,0 +1 @@
module github.com/graphql-go/graphql

0 comments on commit 8000299

Please sign in to comment.