Skip to content

Commit

Permalink
#11 Add circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
ma91n committed Aug 21, 2019
1 parent 95bdd3a commit 0d74b42
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .circleic/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 2.1

executors:
build:
parameters:
go-version:
type: string
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "on"
working_directory: /go/src/d-kuro/go-sandbox

commands:
go_mod_download:
steps:
- restore_cache:
name: Restore go modules cache
keys:
- go-modules-{{ checksum "go.sum" }}
- run: go mod download
- save_cache:
name: Save go modules cache
key: go-modules-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"

jobs:
build:
parameters:
go-version:
type: string
executor:
name: build
go-version: "1.12"
steps:
- checkout
- go_mod_download
- run:
name: Run Tests
command: go test -race -v ./...

workflows:
golang-workflow:
jobs:
- build:
go-version: "1.12.4"

0 comments on commit 0d74b42

Please sign in to comment.