mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-20 00:21:15 +01:00
41 lines
842 B
YAML
41 lines
842 B
YAML
version: 2.1
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: cimg/go:1.16
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- go-mod-{{ checksum "go.sum" }}-v3
|
|
- go-mod-{{ checksum "go.sum" }}
|
|
- go-mod
|
|
- run:
|
|
command: make dist
|
|
- store_artifacts:
|
|
path: build
|
|
- save_cache:
|
|
key: go-mod-{{ checksum "go.sum" }}-v3
|
|
paths:
|
|
- /home/circleci/go/pkg/mod
|
|
test:
|
|
docker:
|
|
- image: cimg/go:1.16
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- go-mod-{{ checksum "go.sum" }}-v3
|
|
- go-mod-{{ checksum "go.sum" }}
|
|
- go-mod
|
|
- run:
|
|
command: make test
|
|
workflows:
|
|
build-and-test:
|
|
jobs:
|
|
- test
|
|
- build:
|
|
requires:
|
|
- test
|