From 43c801b9a1217791e0199ffa3d2afa30a9aad91d Mon Sep 17 00:00:00 2001 From: winebarrel Date: Mon, 24 Feb 2025 13:24:04 +0900 Subject: [PATCH] Add Check test conclusion --- .github/workflows/test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a044e87..590cf32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ concurrency: cancel-in-progress: true jobs: - build: + test: runs-on: ubuntu-latest strategy: fail-fast: false @@ -63,7 +63,13 @@ jobs: - name: Run tests run: bundle exec rake finish: - needs: build + needs: test + if: always() runs-on: ubuntu-latest steps: - - run: echo OK + - name: Check test conclusion + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs \ + | jq -e '.jobs | map(select(.name | test("^test ")).conclusion) | any(. == "failure") | not'