-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,45 @@ | ||
version: 2.1 | ||
orbs: | ||
go: gotest/[email protected] | ||
|
||
executors: | ||
dockerizer: | ||
docker: | ||
- image: cimg/go:1.15.2 | ||
environment: | ||
IMAGE_NAME: filecoin/sentinel-visor | ||
golang: | ||
docker: | ||
- image: circleci/golang:1.13 | ||
|
||
commands: | ||
install-deps: | ||
steps: | ||
- go/install-ssh | ||
- go/install: {package: git} | ||
prepare: | ||
parameters: | ||
linux: | ||
default: true | ||
description: is a linux build environment? | ||
type: boolean | ||
steps: | ||
- checkout | ||
- when: | ||
condition: << parameters.linux >> | ||
steps: | ||
- run: sudo apt-get update | ||
- run: git submodule sync | ||
- run: git submodule update --init | ||
|
||
jobs: | ||
mod-tidy-check: | ||
executor: golang | ||
steps: | ||
- install-deps | ||
- prepare | ||
- go/mod-tidy-check | ||
|
||
test: | ||
docker: | ||
- image: cimg/go:1.15.2 | ||
|
@@ -74,6 +106,7 @@ workflows: | |
# `docker-push` runs master or main branches and tags that look like semver | ||
# see: https://circleci.com/docs/2.0/workflows/#executing-workflows-for-a-git-tag | ||
jobs: | ||
- mod-tidy-check | ||
- test | ||
- docker-build: | ||
filters: | ||
|