filter out non go branches from the 'go-tests' workflow (#7606)

This commit is contained in:
Alvin Huang 2020-04-07 15:39:23 -04:00 committed by GitHub
parent 5851ea4f64
commit c5f5cfddf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 26 deletions

View File

@ -639,38 +639,26 @@ workflows:
version: 2 version: 2
go-tests: go-tests:
jobs: jobs:
- check-vendor: - check-vendor: &filter-ignore-non-go-branches
filters: filters:
branches: branches:
ignore: ignore:
- stable-website - stable-website
- /^docs\/.*/ - /^docs\/.*/
- /^ui\/.*/ - /^ui\/.*/
- lint-consul-retry: - lint-consul-retry: *filter-ignore-non-go-branches
filters: - lint: *filter-ignore-non-go-branches
branches: - test-connect-ca-providers: *filter-ignore-non-go-branches
ignore: - dev-build: *filter-ignore-non-go-branches
- stable-website
- /^docs\/.*/
- /^ui\/.*/
- lint
- dev-build
- go-test: - go-test:
requires: [dev-build] requires: [dev-build]
- go-test-api: - go-test-api:
requires: [dev-build] requires: [dev-build]
- go-test-sdk - go-test-sdk: *filter-ignore-non-go-branches
- test-connect-ca-providers
build-distros: build-distros:
jobs: jobs:
- check-vendor: - check-vendor: *filter-ignore-non-go-branches
filters:
branches:
ignore:
- stable-website
- /^docs\/.*/
- /^ui\/.*/
- build-386: &require-check-vendor - build-386: &require-check-vendor
requires: requires:
- check-vendor - check-vendor
@ -701,13 +689,7 @@ workflows:
context: consul-ci context: consul-ci
test-integrations: test-integrations:
jobs: jobs:
- dev-build: - dev-build: *filter-ignore-non-go-branches
filters:
branches:
ignore:
- stable-website
- /^docs\/.*/
- /^ui\/.*/
- dev-upload-s3: &dev-upload - dev-upload-s3: &dev-upload
requires: requires:
- dev-build - dev-build