-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from snyk/feat/merge-modules
Feat: merge vervet unground into main modules
- Loading branch information
Showing
94 changed files
with
1,305 additions
and
1,556 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ version: 2.1 | |
|
||
orbs: | ||
go: circleci/[email protected] | ||
node: circleci/[email protected] | ||
publish: snyk/publish@1 | ||
prodsec: snyk/[email protected] | ||
|
||
|
@@ -11,20 +12,12 @@ defaults: &defaults | |
docker: | ||
- image: cimg/go:1.21-node | ||
|
||
test_vu_defaults: &test_vu_defaults | ||
test_defaults: &test_defaults | ||
resource_class: medium | ||
working_directory: ~/vervet/vervet-underground | ||
working_directory: ~/vervet | ||
machine: | ||
image: ubuntu-2004:2023.10.1 | ||
|
||
vu_defaults: &vu_defaults | ||
resource_class: small | ||
working_directory: ~/vervet/vervet-underground | ||
docker: | ||
- image: cimg/go:1.21-node | ||
environment: | ||
DOCKER_BUILDKIT: 1 | ||
|
||
ignore_main_branch_filter: &ignore_main_branch_filter | ||
filters: | ||
branches: | ||
|
@@ -53,12 +46,15 @@ commands: | |
|
||
jobs: | ||
test: | ||
<<: *defaults | ||
<<: *test_defaults | ||
steps: | ||
- node/install | ||
- run: | ||
name: Install spectral | ||
command: sudo npm install -g @stoplight/[email protected] | ||
command: npm install -g @stoplight/[email protected] | ||
- checkout | ||
- go/install: | ||
version: 1.21.3 | ||
- go/mod-download-cached | ||
- run: | ||
name: Verify testdata/output up to date | ||
|
@@ -67,17 +63,6 @@ jobs: | |
name: Run tests | ||
command: go test ./... -count=1 | ||
|
||
test-vu: | ||
<<: *test_vu_defaults | ||
steps: | ||
- checkout: | ||
path: ~/vervet | ||
- go/install: | ||
version: 1.21.3 | ||
- go/mod-download-cached | ||
- run: | ||
command: make test | ||
|
||
lint: | ||
docker: | ||
- image: golangci/golangci-lint:v1.51.0 | ||
|
@@ -86,16 +71,8 @@ jobs: | |
- run: | ||
command: golangci-lint run -v ./... | ||
|
||
lint-vu: | ||
docker: | ||
- image: golangci/golangci-lint:v1.51.0 | ||
steps: | ||
- checkout | ||
- run: | ||
command: cd vervet-underground && golangci-lint run -v ./... | ||
|
||
security-scans: | ||
<<: *vu_defaults | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- prodsec/security_scans: | ||
|
@@ -104,14 +81,14 @@ jobs: | |
org: platformeng_api | ||
|
||
build-vu: | ||
<<: *vu_defaults | ||
<<: *defaults | ||
steps: | ||
- checkout: | ||
path: ~/vervet | ||
- gcr_auth | ||
- run: | ||
name: Build Docker Image | ||
command: make build-docker | ||
command: make build-docker APP=vervet-underground | ||
- publish/save-image: | ||
image_name: vervet-underground | ||
|
||
|
@@ -135,18 +112,10 @@ workflows: | |
name: Test | ||
<<: *ignore_main_branch_filter | ||
|
||
- test-vu: | ||
name: Test VU | ||
<<: *ignore_main_branch_filter | ||
|
||
- lint: | ||
name: Lint | ||
<<: *ignore_main_branch_filter | ||
|
||
- lint-vu: | ||
name: Lint VU | ||
<<: *ignore_main_branch_filter | ||
|
||
- security-scans: | ||
name: Security Scans | ||
context: | ||
|
@@ -157,8 +126,8 @@ workflows: | |
name: Build Docker Image | ||
context: snyk-docker-build | ||
requires: | ||
- Test VU | ||
- Lint VU | ||
- Test | ||
- Lint | ||
|
||
- prodsec/container-scan: | ||
name: Scan VU Container | ||
|
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
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
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
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
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
Oops, something went wrong.