Ignore lint jobs on master

Is this a valid workflow ?

workflows:
version: 2
lint_and_test:
jobs:
- rubocop_lint:
filters:
branches:
ignore: master
- bundle_audit_check:
filters:
branches:
ignore: master
- enova_security_check:
filters:
branches:
ignore: master
- db_linter:
filters:
branches:
ignore: master
- rspec:
requires:
- rubocop_lint
- bundle_audit_check
- enova_security_check
- db_linter
- exspec:
requires:
- rubocop_lint
- bundle_audit_check
- enova_security_check
- db_linter
- cucumber:
requires:
- rubocop_lint
- bundle_audit_check
- enova_security_check
- db_linter

Hi @bheemreddy181, welcome to Discuss!

That workflow is indeed valid, with the setup any branch but master will have all of the jobs in the workflow run. On master the workflow would not trigger, so it would look something like this:

Screen Shot 2020-08-06 at 8.34.05 AM

Hope that helps clarify and let me know if you need anything else!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.