mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
91e365bbd5
This removes reliance on the custom kolide/fleet-builder container for CI.
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
version: 2
|
|
jobs:
|
|
build-go:
|
|
docker:
|
|
- image: golang:1.12
|
|
working_directory: /go/src/github.com/kolide/fleet
|
|
steps: &stepsgo
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- vendor-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
|
|
- vendor-cache-{{ .Branch }}
|
|
- vendor-cache
|
|
|
|
- run: make deps-go
|
|
- save_cache:
|
|
key: vendor-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
|
|
paths:
|
|
- vendor
|
|
- save_cache:
|
|
key: vendor-cache-{{ .Branch }}
|
|
paths:
|
|
- vendor
|
|
- save_cache:
|
|
key: vendor-cache
|
|
paths:
|
|
- vendor
|
|
- run: make generate-go
|
|
- run: make lint-go
|
|
- run: make test-go
|
|
- run: make build
|
|
|
|
build-js:
|
|
docker:
|
|
- image: node:10.16.0
|
|
steps: &stepsjs
|
|
- checkout
|
|
- run: make deps-js
|
|
- run: make generate-js
|
|
- run: make lint-js
|
|
- run: make test-js
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- build-go
|
|
- build-js
|