Sam changed the goblin's price and pushed. The tests failed, but build ran anyway and built a catalogue with the wrong price. It started at the same time as test, before anyone knew.
needs: makes a job wait until the jobs it lists have passed:
yaml
build:
needs: [lint, test]
runs-on: ubuntu-latestIf one of them fails, the job doesn't run: it's skipped. gh run view shows it with -.
Objectives
- Build only after lint and test.
- Get the whole run green.