From 098a098d435af649382bdb59ad8e3871ce994cd5 Mon Sep 17 00:00:00 2001 From: kazuki Date: Sun, 10 May 2026 05:09:56 +0900 Subject: [PATCH] chore: remove develop branch trigger, use shared node-pnpm-ci workflow - Remove 'develop' from push/PR branch triggers (env-per-branch anti-pattern) - Replace duplicated build+test jobs with shared reusable workflow - Add concurrency to cancel stale runs Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 65 ++++++++-------------------------------- 1 file changed, 12 insertions(+), 53 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5312614..2d9080d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,59 +2,18 @@ name: CI on: push: - branches: [main, develop] + branches: [main] pull_request: - branches: [main, develop] + branches: [main] + workflow_dispatch: -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 10.12.0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build core package - run: pnpm turbo run build --filter=@airiscode/core - - test: - name: Test - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout - uses: actions/checkout@v4 +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 10.12.0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build core package - run: pnpm turbo run build --filter=@airiscode/core - - - name: Run core tests - run: pnpm turbo run test --filter=@airiscode/core || true +jobs: + ci: + uses: agiletec-inc/.github/.github/workflows/node-pnpm-ci.yml@main + with: + node-version: '22' + run-command: pnpm turbo run build lint test