2
0
mirror of https://github.com/offen/website.git synced 2024-12-23 05:20:21 +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
jobs:
build:
server:
docker:
- image: circleci/golang:1.12
working_directory: ~/offen
working_directory: ~/offen/server
steps:
- checkout
- checkout:
path: ~/offen
- restore_cache:
key: v1-dependencies-{{ checksum "server/go.mod" }}
key: v1-dependencies-{{ checksum "go.mod" }}
- run:
name: Download modules
command: go mod download
- save_cache:
paths:
- /go/pkg/mod
key: v1-dependencies-{{ checksum "server/go.mod" }}
key: v1-dependencies-{{ checksum "go.mod" }}
- run:
name: Run tests
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 ./...