diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bd5185..71313ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,3 +139,20 @@ jobs: run: | sudo -E PATH=$PATH make integration working-directory: src/github.com/containerd/containerd + + # Currently Github actions UI supports no masks to mark matrix jobs as required to pass status checks. + # This means that every time version of Go, containerd, or OS is changed, a corresponding job should + # be added to the list of required checks. Which is not very convenient. + # To workaround this, a special job is added to report statuses of all other jobs, with fixed title. + # So it needs to be added to the list of required checks only once. + # + # See https://github.com/orgs/community/discussions/26822 + results: + name: Report required job statuses + runs-on: ubuntu-latest + # List job dependencies which are required to pass status checks in order to be merged via merge queue. + needs: [checks, tests, deny, integration] + if: ${{ always() }} + steps: + - run: exit 1 + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}