2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

ensure basic test coverage

This commit is contained in:
Frederik Ring 2019-04-11 15:48:36 +02:00
parent f522f0737d
commit e29344a64c
2 changed files with 13 additions and 11 deletions

View File

@ -1,22 +1,28 @@
version: 2 version: 2
jobs: jobs:
build: server:
docker: docker:
- image: circleci/golang:1.12 - image: circleci/golang:1.12
working_directory: ~/offen/server
working_directory: ~/offen
steps: steps:
- checkout - checkout:
path: ~/offen
- restore_cache: - restore_cache:
key: v1-dependencies-{{ checksum "server/go.mod" }} key: v1-dependencies-{{ checksum "go.mod" }}
- run: - run:
name: Download modules name: Download modules
command: go mod download command: go mod download
- save_cache: - save_cache:
paths: paths:
- /go/pkg/mod - /go/pkg/mod
key: v1-dependencies-{{ checksum "server/go.mod" }} key: v1-dependencies-{{ checksum "go.mod" }}
- run: - run:
name: Run tests name: Run tests
command: make test command: make test
workflows:
version: 2
build_and_test:
jobs:
- server

View File

@ -1,4 +0,0 @@
test: test-server
test-server:
@cd server; go test ./...