Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Go Modules. #425

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module github.com/graphql-go/graphql