Skip to content

Commit 3f2c29e

Browse files
committed
Add circleci configuration
1 parent 65a1b5d commit 3f2c29e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2
2+
jobs:
3+
build-go1.11.4:
4+
docker:
5+
- image: circleci/golang:1.11.4
6+
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
7+
steps:
8+
- checkout
9+
- run: go test -v -race ./...
10+
- run: go build -race cmd/{{REPO_NAME}}/main.go
11+
build-go_latest:
12+
docker:
13+
- image: circleci/golang:latest
14+
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
15+
steps:
16+
- checkout
17+
- run: go test -v -race ./...
18+
- run: go build -race cmd/{{REPO_NAME}}/main.go
19+
workflows:
20+
version: 2
21+
build_and_test:
22+
jobs:
23+
- build-go1.11.4
24+
- build-go_latest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![CircleCI](https://circleci.com/gh/friendsofgo/gopherapi.svg?style=svg)](https://circleci.com/gh/friendsofgo/gopherapi)
2+
13
# Gopher API
24
The Gopher API, is a simple CRUD API for formative purpose, we're building it while writing the posts of the [blog](https://blog.friendsofgo.tech).
35

0 commit comments

Comments
 (0)