Skip to content

Commit

Permalink
build: add snyk to build
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 28, 2020
1 parent 2b0ad4c commit 88d6be4
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 12 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
language: go

go:
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x

services:
- docker

- docker
env:
global:
secure: LN8/2VY4tvHcCzIVlpy+x3KIlkFNGrwQmQadLR3oT0nJWmkZQhE5f+InAPaQNDm3siJcNG0wLCo0iLw6JN1esF/VQPrsHrW3MAkbKyNsdYnSZUZJ6Zs6MmBoigHy4qWuFayGhChgMHqhyXf6q8B5KhJb3vKKn/WW4nsU8tfpk1jdr8mdRcFEfjViQake5vZUb93gy3sXJxz6NlEaYZcrY25c/iOd06oOQZlCCyz5FhkArBKK95jbeMr5LO/5Xlkg1pIHE571Distoc4e3+ZfzW/yQCsgrZNcLElV96mvRHw/x8k2Bb7UgXQbNPX/mxV7bJCHVjhmIkwP8JKOFEs9AD0nWWjXWA1PlG7MdQoZTCoAnZWUCCsMVDDg/sg7/Vlzf+szYCoz0NE2v0Z1+v9h/itljaSHa0H9u2G/mkvZio377ou0AK54OIXDcPP0BmXvA8uJV6U3hCubWOnF0uwSCrysKEThxD/OFm90IIyLY8LKlsgHsFTkSTiApI//xRfm4NBF1sSg4V2FCzAMJx6596ekIcWgfoVUpSiOKiktwXnZha6XtHENDJeGuNpywowPInvYDZHCHYscCnre6MKTMttmb/q4JgSJEnn2vatRwXQbglzXhCDH7dw/a/75LSUT5Exj0f2HWpxDy+pi+nzITxZoFT+syNFwDvSRMT/wKLU=
- secure: LN8/2VY4tvHcCzIVlpy+x3KIlkFNGrwQmQadLR3oT0nJWmkZQhE5f+InAPaQNDm3siJcNG0wLCo0iLw6JN1esF/VQPrsHrW3MAkbKyNsdYnSZUZJ6Zs6MmBoigHy4qWuFayGhChgMHqhyXf6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a1PemLBfFBaT7KnUBlgWirrnn3aPo9xR0QTgfjRfYNnF65DzEUKnqqYt2km9Ox+MAySrQhJrdpsMguasxmjzBwM3m+wgjAf+mzYkZ6IMI653G41qRUbTegmELEFbE=
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TEST?=./...

.DEFAULT_GOAL := ci

ci:: docker deps clean bin test pact goveralls
ci:: docker deps snyk clean bin test pact goveralls

docker:
@echo "--- 🛠 Starting docker"
Expand All @@ -21,7 +21,7 @@ bin:
clean:
rm -rf build output dist

deps:
deps: snyk-install
@echo "--- 🐿 Fetching build dependencies "
go get github.com/axw/gocov/gocov
go get github.com/mattn/goveralls
Expand Down Expand Up @@ -69,4 +69,10 @@ testrace:
updatedeps:
go get -d -v -p 2 ./...

snyk-install:
npm i -g snyk

snyk:
snyk test

.PHONY: install bin default dev test pact updatedeps clean release
14 changes: 9 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ go 1.12

require (
github.com/axw/gocov v1.0.0 // indirect
github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 // indirect
github.com/gin-gonic/gin v0.0.0-20170702092826-d459835d2b07
github.com/golang/protobuf v1.1.0 // indirect
github.com/gin-gonic/gin v1.6.3
github.com/go-playground/validator/v10 v10.3.0 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/hashicorp/go-version v1.0.0
github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/mattn/go-isatty v0.0.3 // indirect
github.com/json-iterator/go v1.1.10 // indirect
github.com/mattn/goveralls v0.0.6 // indirect
github.com/mitchellh/gox v1.0.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5 // indirect
github.com/spf13/cobra v0.0.0-20160604044732-f447048345b6
github.com/spf13/pflag v0.0.0-20160427162146-cb88ea77998c // indirect
github.com/stretchr/testify v1.4.0
github.com/ugorji/go v1.1.1 // indirect
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect
golang.org/x/tools v0.0.0-20200626171337-aa94e735be7f // indirect
google.golang.org/protobuf v1.25.0 // indirect
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
)
Loading

0 comments on commit 88d6be4

Please sign in to comment.