Skip to content

Commit 70465b9

Browse files
committed
fix workflows
1 parent 0830f91 commit 70465b9

File tree

2 files changed

+33
-15
lines changed

2 files changed

+33
-15
lines changed

.github/workflows/agentic-component-builder.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
1919

20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v2
22+
with:
23+
version: latest
24+
run_install: false
25+
2026
- name: Setup Node.js
2127
uses: actions/setup-node@v4
2228
with:
23-
node-version: '20'
24-
cache: 'npm'
29+
node-version: '18'
30+
cache: 'pnpm'
2531

2632
- name: Install dependencies
27-
run: npm ci
33+
run: pnpm install --frozen-lockfile
2834

2935
- name: Extract component requirements
3036
id: extract

.github/workflows/tests.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,25 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: latest
19+
run_install: false
20+
1521
- name: Setup Node.js
1622
uses: actions/setup-node@v4
1723
with:
18-
node-version: 'lts/*'
19-
cache: 'npm'
20-
24+
node-version: '18'
25+
cache: 'pnpm'
26+
2127
- name: Install dependencies
22-
run: npm ci --legacy-peer-deps
23-
28+
run: pnpm install --frozen-lockfile
29+
2430
- name: Run unit tests
2531
# Continue even if tests fail
2632
continue-on-error: true
27-
run: npm test
33+
run: pnpm test
2834

2935
- name: Upload test report
3036
if: always()
@@ -41,14 +47,20 @@ jobs:
4147
steps:
4248
- uses: actions/checkout@v4
4349

50+
- name: Install pnpm
51+
uses: pnpm/action-setup@v2
52+
with:
53+
version: latest
54+
run_install: false
55+
4456
- name: Setup Node.js
4557
uses: actions/setup-node@v4
4658
with:
47-
node-version: 'lts/*'
48-
cache: 'npm'
59+
node-version: '18'
60+
cache: 'pnpm'
4961

5062
- name: Install dependencies
51-
run: npm ci --legacy-peer-deps
63+
run: pnpm install --frozen-lockfile
5264

5365
# Skip Playwright browser installation when running locally with act
5466
- name: Check if running in GitHub Actions
@@ -62,19 +74,19 @@ jobs:
6274

6375
- name: Start Storybook in background
6476
if: steps.check_github.outputs.is_github == 'true'
65-
run: npm run storybook &
77+
run: pnpm run storybook &
6678

6779
- name: Wait for Storybook to be ready
6880
if: steps.check_github.outputs.is_github == 'true'
6981
run: |
70-
npm install -g wait-on
82+
pnpm install -g wait-on
7183
wait-on http://localhost:6006
7284
7385
- name: Run component tests
7486
if: steps.check_github.outputs.is_github == 'true'
7587
# Continue even if tests fail
7688
continue-on-error: true
77-
run: npm run test:component
89+
run: pnpm run test:component
7890

7991
- name: Upload Playwright report
8092
if: always() && steps.check_github.outputs.is_github == 'true'

0 commit comments

Comments
 (0)