Skip to content

Commit 8533c30

Browse files
TheOrangePuffclaude
andcommitted
refactor: consolidate test workflow into pull-request.yml
- Move test job from standalone test.yml into existing pull-request.yml workflow - Use nx affected:test to only run tests for changed packages - Maintain consistent workflow structure and environment setup - Remove duplicate test.yml workflow file 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5d8a17d commit 8533c30

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

.github/workflows/pull-request.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,35 @@ jobs:
5454

5555
env:
5656
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
57+
58+
test:
59+
name: 🧪 Run tests
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Checkout Repository
63+
uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0
66+
67+
- name: Fetch target
68+
run: git fetch origin ${{ env.PR_BASE_REF }}
69+
70+
- name: Enable Corepack
71+
run: corepack enable
72+
73+
- uses: actions/setup-node@v4
74+
with:
75+
node-version-file: ".nvmrc"
76+
cache: "yarn"
77+
78+
- name: Install
79+
run: yarn install
80+
81+
- name: Build all packages
82+
run: yarn nx run-many -t build
83+
84+
- name: Test affected packages
85+
run: yarn nx affected:test --base=origin/${{ env.PR_BASE_REF }} --parallel --max-parallel=3
86+
87+
env:
88+
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}

.github/workflows/test.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)