From 4ad653b9ac84106a3c8fc7d71377eb35144de082 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Mon, 31 Oct 2022 23:35:03 +0000 Subject: [PATCH] Add status job that can be used as a required check for PRs --- .github/workflows/test_and_publish.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index 330009c..cb22a66 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -51,6 +51,20 @@ jobs: - name: Test run: ./ci/test.sh + # This job can be used as a required status for Pull Requests + status: + runs-on: ubuntu-latest + timeout-minutes: 2 + name: Status + needs: + - precommit + - test_omero + steps: + - name: Status + run: | + echo "precommit: ${{ needs.precommit.result }}" + echo "test_omero: ${{ needs.test_omero.result }}" + publish: runs-on: ubuntu-latest permissions: