Skip to content

Commit 220df9e

Browse files
committed
refactor(cli): use single test step for all packages
1 parent 177d913 commit 220df9e

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,9 @@ jobs:
6262
- run: pnpm install --frozen-lockfile
6363
- run: pnpm run test:types
6464

65-
test-cli:
65+
test:
6666
runs-on: ubuntu-latest
6767
timeout-minutes: 10
68-
defaults:
69-
run:
70-
working-directory: packages/cli
7168
steps:
7269
- uses: actions/checkout@v5
7370
with:
@@ -86,30 +83,4 @@ jobs:
8683
restore-keys: |
8784
${{ runner.os }}-pnpm-store-
8885
- run: pnpm install --frozen-lockfile
89-
- run: pnpm run test
90-
91-
test-toon:
92-
runs-on: ubuntu-latest
93-
timeout-minutes: 10
94-
defaults:
95-
run:
96-
working-directory: packages/toon
97-
steps:
98-
- uses: actions/checkout@v5
99-
with:
100-
fetch-depth: 1
101-
- uses: pnpm/action-setup@v4
102-
- uses: actions/setup-node@v6
103-
with:
104-
node-version: 24
105-
- name: Get pnpm store directory
106-
id: pnpm-cache
107-
run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
108-
- uses: actions/cache@v4
109-
with:
110-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
111-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
112-
restore-keys: |
113-
${{ runner.os }}-pnpm-store-
114-
- run: pnpm install --frozen-lockfile
115-
- run: pnpm run test
86+
- run: pnpm run test

0 commit comments

Comments
 (0)