chore: change yarn to pnpm

This commit is contained in:
Igor Klepacki 2025-01-23 09:20:58 +01:00
parent a8a3653106
commit fd19e69a69
7 changed files with 19203 additions and 15560 deletions

View file

@ -20,18 +20,24 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ env.node_version }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: "Install pnpm & dependencies"
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
- name: Lint check
run: yarn lint
run: pnpm run lint
- name: Format check
run: yarn prettier
run: pnpm run prettier
- name: Unit & Integration tests
run: yarn test
run: pnpm run test
- name: Smoke & Acceptance tests
run: |
yarn build-storybook --quiet
yarn playwright install
pnpm run build-storybook --quiet
pnpm run playwright install
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:127.0.0.1:6006 && yarn test-storybook"
"npx wait-on tcp:127.0.0.1:6006 && pnpm run test-storybook"

View file

@ -29,8 +29,15 @@ jobs:
with:
node-version: "20.x"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: "Install pnpm & dependencies"
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
# - name: Install dependencies
# run: pnpm install --frozen-lockfile
- name: Restore next build
uses: actions/cache@v3
@ -46,7 +53,7 @@ jobs:
env:
SKIP_BUILD_PRODUCT_REDIRECTS: 1
# change this if your site requires a custom build command
run: yarn build
run: pnpm build
# Here's the first place where next-bundle-analysis' own script is used
# This step pulls the raw bundle stats for the current bundle

View file

@ -18,12 +18,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ env.node_version }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: "Install pnpm & dependencies"
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
run: pnpm playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
run: pnpm playwright test
- uses: actions/upload-artifact@v3
if: always()
with: