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:
parent
f522f0737d
commit
e29344a64c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user