diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..ea70533 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2.1 + +jobs: + build: + working_directory: ~/repo + docker: + - image: circleci/golang:1.15.8 + steps: + - checkout + - restore_cache: + keys: + - go-mod-v4-{{ checksum "go.sum" }} + - run: + name: Install Dependencies + command: go mod download + - save_cache: + key: go-mod-v4-{{ checksum "go.sum" }} + paths: + - "/go/pkg/mod" + - run: + name: Run tests + command: make ci-test + - run: + name: Upload coverage report + command: bash <(curl -s https://codecov.io/bash) \ No newline at end of file