Skip to content

Commit

Permalink
Setup CircleCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
felicianotech committed May 31, 2020
1 parent 3ed16b6 commit 08417c6
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .circleci/config.yml
@@ -1,20 +1,30 @@
version: 2.1

orbs:
go: circleci/go@1.1

workflows:
main:
jobs:
- build

jobs:
build:
executor:
name: go/default
tag: "1.14"
docker:
- image: cimg/go:1.14
steps:
- checkout
- go/load-cache
- go/test
- go/save-cache
- restore_cache:
keys:
- go-mod-v1-{{ checksum "gravatar/go.sum" }}
- run:
name: "Test with GoTestSum"
command: |
mkdir ./test-output
gotestsum --junitfile ./test-output/unit-tests.xml
- save_cache:
key: go-mod-v1-{{ checksum "gravatar/go.sum" }}
paths:
- /home/circleci/go/pkg/mod
- store_test_results:
path: ./test-output
- run:
name: "Try compiling"
command: go build ./...

0 comments on commit 08417c6

Please sign in to comment.