Closed ineiti closed 3 years ago
Again on this barrier
job, did you consider using needs: [javascript, golang, pre-commit]
inplace of needs: lint-build
?
Kudos, SonarCloud Quality Gate passed!
Again on this
barrier
job, did you consider usingneeds: [javascript, golang, pre-commit]
inplace ofneeds: lint-build
?
Yes, I did, and I thought it's nicer with a barrier - it represents better the difference between the lint-build
that contains 3 jobs, and the test
job... But if you convince @cgrigis it's cleaner with a needs: [...]
, I'm OK with it...
Yes, I did, and I thought it's nicer with a barrier - it represents better the difference between the
lint-build
that contains 3 jobs, and thetest
job... But if you convince @cgrigis it's cleaner with aneeds: [...]
, I'm OK with it...
I lean towards needs: lint-build
, as it is used 4 times and thus avoids repetition and eases maintenance.
It is unfortunate that this requires a whole job though, it would be much simpler to allow a variable, but that does not appear possible. :-( What's one more VM spawn anyway? ;-)
Using on:workflow_run puts the result of the workflow in the master-branch, which makes it impossible to use the results of test.yaml in the requirement of the PR.
This PR creates a monster-workflow lint_build_test to avoid that problem.