From 25eef952542d0fba52ad1eb04d6f9770482a222a Mon Sep 17 00:00:00 2001 From: Lin & Lay Date: Thu, 26 Mar 2026 14:30:44 +0900 Subject: [PATCH] Add CI gate job for branch protection Required check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gate パターン: 全 CI job の結果を集約する `CI` job を追加。 branch protection の Required check は `CI` 一つで済み、 job 追加時に Settings を変更する必要がない。 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73b30fe..2a4a219 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,3 +16,16 @@ jobs: node-version: "22" - run: node --check mcp-server/server/index.js - run: cd worker && npm ci && npx wrangler deploy --dry-run --outdir dist + + # Gate job: single Required status check for branch protection. + # Add new jobs to `needs` when CI grows. No Settings change needed. + CI: + if: always() + needs: [test] + runs-on: ubuntu-latest + steps: + - run: | + if [[ "${{ needs.test.result }}" != "success" ]]; then + echo "CI failed: test=${{ needs.test.result }}" + exit 1 + fi