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