From b40fd3efbd5ee42980c3f9352c5916de974847e4 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 19 Dec 2022 18:25:31 +0100 Subject: [PATCH] ci: Add gather step We can require a status to be successful in PRs, but they are referenced by name, and so we'd have to add each matrix job as required. That's rather cumbersome, so have this artificial gather step at the end which signals success on the entire run. --- .github/workflows/ci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 73869b8e4..72fc77d6e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -243,3 +243,17 @@ jobs: run: | tar -xf cln-${CFG}.tar poetry run pytest tests/ -n ${PYTEST_PAR} ${PYTEST_OPTS} + + gather: + # A dummy task that depends on the full matrix of tests, and + # signals successful completion. Used for the PR status to pass + # before merging. + name: CI completion + runs-on: ubuntu-20.04 + needs: + - integration + - check-units + steps: + - name: Complete + run: | + echo CI completed successfully