From 92e24e2a989c7ac23dcf8b673704e3c41cc84179 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sun, 12 Apr 2026 20:57:20 +0900 Subject: [PATCH] Skip test_11g and test_gemfiles for draft pull requests For draft PRs, only test.yml runs to give quick feedback. The heavier test_11g.yml and test_gemfiles.yml workflows are skipped until the PR is marked ready for review. Also limit push triggers to the master branch so feature branch pushes only run CI via the pull_request event. Follows the same pattern as rsim/oracle-enhanced#2509. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/test_11g.yml | 4 ++++ .github/workflows/test_gemfiles.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test_11g.yml b/.github/workflows/test_11g.yml index 21002e86..9eb425fb 100644 --- a/.github/workflows/test_11g.yml +++ b/.github/workflows/test_11g.yml @@ -2,10 +2,14 @@ name: test_11g on: push: + branches: + - master pull_request: + types: [opened, synchronize, reopened, ready_for_review] jobs: build: + if: github.event_name != 'pull_request' || !github.event.pull_request.draft runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/test_gemfiles.yml b/.github/workflows/test_gemfiles.yml index b37b575e..b50d3eb5 100644 --- a/.github/workflows/test_gemfiles.yml +++ b/.github/workflows/test_gemfiles.yml @@ -2,7 +2,10 @@ name: test_gemfiles on: push: + branches: + - master pull_request: + types: [opened, synchronize, reopened, ready_for_review] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -10,6 +13,7 @@ concurrency: jobs: build: + if: github.event_name != 'pull_request' || !github.event.pull_request.draft runs-on: ubuntu-latest strategy: