diff --git a/.circleci/config.yml b/.circleci/config.yml index 20ba936d..608cb893 100644 --- a/.circleci/config.yml +++ b/.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 @@ -37,5 +48,6 @@ workflows: jobs: - golang:1.8.7 - golang:1.9.7 + - golang:1.11 - golang:latest - coveralls diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..399b200d --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module github.com/graphql-go/graphql