From aa74b60d4dc0196762bc3553e607af2bdc45e006 Mon Sep 17 00:00:00 2001 From: Junya Morioka Date: Sat, 14 Jun 2025 13:51:49 +0900 Subject: [PATCH 1/4] fix: GHA CI status check --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2feed7f..721f925 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,3 +63,16 @@ jobs: docker compose build docker compose up -d docker compose down + + ci-check: + name: ci status check + runs-on: ubuntu-latest + needs: [ci] + if: always() + steps: + - name: Some CI failed + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')}} + run: exit 1 + - name: All CI passed + if: ${{ contains(needs.*.result, 'success') || contains(needs.*.result, 'skipped') }} + run: exit 0 From 0c590447b38faa884c3310c4781d3939a6251bc5 Mon Sep 17 00:00:00 2001 From: Junya Morioka Date: Sat, 14 Jun 2025 14:15:13 +0900 Subject: [PATCH 2/4] fix: GHA CI status check --- .github/workflows/test.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 721f925..b1abd07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,15 +64,18 @@ jobs: docker compose up -d docker compose down - ci-check: - name: ci status check + results: + name: CI Status Check runs-on: ubuntu-latest needs: [ci] if: always() steps: - - name: Some CI failed - if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')}} - run: exit 1 - - name: All CI passed - if: ${{ contains(needs.*.result, 'success') || contains(needs.*.result, 'skipped') }} - run: exit 0 + - name: Evaluate CI status + run: | + if contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled'); then + echo "Some CI checks failed" + exit 1 + else + echo "All CI checks passed" + exit 0 + fi From 3472e7a739ee99e35ad17ba1e1cbd2de55d175a9 Mon Sep 17 00:00:00 2001 From: Junya Morioka Date: Sat, 14 Jun 2025 14:17:45 +0900 Subject: [PATCH 3/4] fix: GHA CI status check --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1abd07..5a8337f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,7 @@ on: jobs: ci: + name: CI runs-on: ubuntu-latest strategy: matrix: From 5ace2706a280ada5294421195a6b6397f1233b85 Mon Sep 17 00:00:00 2001 From: Junya Morioka Date: Sat, 14 Jun 2025 14:21:40 +0900 Subject: [PATCH 4/4] fix: GHA CI status check --- .github/workflows/test.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a8337f..2738f47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,18 +65,15 @@ jobs: docker compose up -d docker compose down - results: + ci-check: name: CI Status Check runs-on: ubuntu-latest needs: [ci] if: always() steps: - - name: Evaluate CI status - run: | - if contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled'); then - echo "Some CI checks failed" - exit 1 - else - echo "All CI checks passed" - exit 0 - fi + - name: Some checks failed + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')}} + run: exit 1 + - name: All checks ok + if: ${{ contains(needs.*.result, 'success') }} + run: exit 0