From 0ba95d1a3249b08bc436c831b034a7d7d3d6c95e Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Tue, 9 Dec 2025 04:03:20 +0900 Subject: [PATCH] Refactor: Move E2E tests to dedicated workflow for release branch --- .github/workflows/e2e.yml | 44 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 6 ----- 2 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 00000000..cfa35e65 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,44 @@ +name: E2E Tests + +on: + push: + branches: [changeset-release/main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + PNPM_VERSION: '10.10.0' + NODE_VERSION: '22' + +jobs: + e2e: + name: E2E Tests + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: ${{ env.PNPM_VERSION }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm run build + + - name: Run E2E tests + run: pnpm test:e2e + env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + EXA_API_KEY: ${{ secrets.EXA_API_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc35d266..0d0dbe06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,12 +43,6 @@ jobs: - name: Build run: pnpm run build - - name: Run E2E tests - run: pnpm test:e2e - env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - EXA_API_KEY: ${{ secrets.EXA_API_KEY }} - - name: Create Release PR or Publish id: changesets uses: changesets/action@v1