neovim/.github
dundargoc 0aba176171
ci: skip tests if build fails (#20908)
It's currently difficult to pinpoint the cause of a failure since all
tests are run even if the build steps fail. But since the build failed
the test will almost always fail as well as it's dependent on a
successful build, leading to many steps being marked as a failure even
though the real problem was the build step. Even worse, the default
behavior of GitHub Actions is to only automatically show the last failed
step, which is misleading if the build process fails since it'll show
the logs of the failing test step.

An easy solution would be to abort all subsequent steps if any steps
fail. This isn't optimal however, as we want all lint and test failures
to show on a single run instead of prematurely aborting on a single test
step.

We can solve both problems by dividing each job into two phases: the
build/installation phase and the test/lint phase, with a checkmark step
in between. The strategy is simple: if any step before the checkmark
step fails (the build phase), then abort all following steps. If any
step after the checkmark fails (the test phase), then show that test as
failed but continue running all tests.
2022-11-04 13:26:12 +01:00
..
ISSUE_TEMPLATE docs: refer to vim.lsp.start() in LSP issue template #20422 2022-10-02 16:08:42 -07:00
scripts ci: add reviewers based on labels (#20703) 2022-10-18 11:13:58 +02:00
workflows ci: skip tests if build fails (#20908) 2022-11-04 13:26:12 +01:00
FUNDING.yml funding: Bountysource Salt -> GitHub Sponsors & Open Collective [ci skip] (#12959) 2020-09-21 20:47:02 +02:00
labeler.yml ci(labeler): add treesitter label for query changes (#20122) 2022-09-08 21:58:50 +02:00