mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-20 00:21:15 +01:00
ce4ee64509
Some minor linting fixes and general style/scope changes, which should have no impact on the overall application. Also moved to the offical CircleCI UPX Orb, rather than my own (which is still maintained by me).
42 lines
866 B
YAML
42 lines
866 B
YAML
version: 2.1
|
|
orbs:
|
|
upx: circleci/upx@1.0.1
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: cimg/go:1.14
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- go-mod-{{ checksum "go.sum" }}-v2
|
|
- go-mod-{{ checksum "go.sum" }}
|
|
- go-mod
|
|
- upx/install
|
|
- run:
|
|
command: make dist
|
|
- store_artifacts:
|
|
path: build
|
|
- save_cache:
|
|
key: go-mod-{{ checksum "go.sum" }}-v2
|
|
paths:
|
|
- /home/circleci/go/pkg/mod
|
|
test:
|
|
docker:
|
|
- image: cimg/go:1.14
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- go-mod-{{ checksum "go.sum" }}-v2
|
|
- go-mod-{{ checksum "go.sum" }}
|
|
- go-mod
|
|
- run:
|
|
command: make test
|
|
workflows:
|
|
version: 2
|
|
build-and-test:
|
|
jobs:
|
|
- build
|
|
- test
|