Skip to content

Commit 7c5c20c

Browse files
committed
ci: migrate workflows to use Yarn as package manager
1 parent c70b462 commit 7c5c20c

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
with:
1515
node-version: lts/*
1616
- name: Install dependencies
17-
run: npm ci
17+
run: yarn install
1818
- name: Install Playwright Browsers
1919
run: npx playwright install --with-deps
2020
- name: Install serve
21-
run: npm install -g serve
21+
run: yarn global add serve
2222
- name: Build application
23-
run: npm run build
23+
run: yarn build
2424
- name: Start static file server
2525
run: serve out & npx wait-on http://localhost:3000
2626
- name: Run Playwright tests

.github/workflows/test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@ on:
66
jobs:
77
test:
88
runs-on: ubuntu-latest
9-
109
steps:
1110
- name: Checkout code
1211
uses: actions/checkout@v4
13-
1412
- name: Setup Node.js
1513
uses: actions/setup-node@v4
1614
with:
17-
node-version: '20'
18-
cache: 'npm'
19-
15+
node-version: '22'
16+
cache: 'yarn'
2017
- name: Install dependencies
21-
run: npm ci
22-
18+
run: yarn install
2319
- name: Run linting
24-
run: npm run lint
25-
20+
run: yarn lint
2621
- name: Build
27-
run: npm run build
22+
run: yarn build

0 commit comments

Comments
 (0)