mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-06 19:22:30 +03:00
* ci: use pnpm/setup for pnpm setup and install Replace the corepack bootstrap + actions/setup-node + separate `pnpm install` steps with a single `pnpm/setup` step, which installs pnpm (version read from package.json `packageManager`), installs Node, caches the pnpm store and runs `pnpm install`. Node 24 stays pinned via `runtime: node@24`, and the GitHub Pages workflow drops `pnpm/action-setup` in favour of the same step (it now caches the store too). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA * chore: pin Node in package.json, bump pnpm to 11.22.0 Move the Node version out of the workflows and into package.json, so the `pnpm/setup` steps are just `cache: true`: - `engines.node` pins Node 24 as package metadata. - `devEngines.runtime` is the field `pnpm/setup` actually reads to pick the runtime, and pnpm itself uses it to run scripts, so it is needed for the pin to take effect. Bump `packageManager` from pnpm 11.11.0 to 11.22.0 (latest 11.x). pnpm records the runtime in the lockfile (`node@runtime:24.19.0`), and the 11.22.0 resolver writes peer suffixes differently from 11.11.0, so pnpm-lock.yaml is regenerated. Lint, typecheck, unit tests and build all pass on the updated lockfile. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA * chore: bump .nvmrc to Node 24.19.0 The repo was already on Node 24 everywhere else (Dockerfile, workflows, and now engines/devEngines in package.json) while .nvmrc still selected 22.19.0. Align it with the rest, matching the node@runtime:24.19.0 version pnpm resolved into the lockfile. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA --------- Co-authored-by: Claude <noreply@anthropic.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: E2E tests
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- chore/all-my-stuffs
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 120
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
shard: [1/3, 2/3, 3/3]
|
|
steps:
|
|
- uses: actions/checkout@v7.0.0
|
|
|
|
- name: Setup pnpm and install dependencies
|
|
uses: pnpm/setup@v2.0.2
|
|
with:
|
|
cache: true
|
|
|
|
- name: Get Playwright version
|
|
id: playwright-version
|
|
run: echo "PLAYWRIGHT_VERSION=$(jq -r .dependencies.playwright package.json)" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Build app
|
|
run: pnpm build
|
|
|
|
- name: Restore Playwright browsers from cache
|
|
uses: actions/cache@v6.1.0
|
|
with:
|
|
path: ~/.cache/ms-playwright
|
|
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-
|
|
${{ runner.os }}-playwright-
|
|
|
|
- name: Install Playwright Browsers
|
|
run: pnpm exec playwright install --with-deps
|
|
|
|
- name: Run Playwright tests
|
|
run: pnpm run test:e2e --shard=${{ matrix.shard }}
|