docs: add v4 to v5 data migration guide #22474
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-examples: | |
name: 'Build Examples' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.11.0 | |
- name: Use Node.js 22 | |
uses: actions/setup-node@v5 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build Examples | |
run: pnpm run build:examples | |
prettier: | |
name: 'Prettier' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.11.0 | |
- name: Use Node.js 22 | |
uses: actions/setup-node@v5 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run Prettier check | |
run: pnpm run prettier-check | |
eslint: | |
name: 'ESLint' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.11.0 | |
- name: Use Node.js 22 | |
uses: actions/setup-node@v5 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run ESLint check | |
run: pnpm run lint | |
types: | |
name: 'TypeScript' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.11.0 | |
- name: Use Node.js 22 | |
uses: actions/setup-node@v5 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run TypeScript type check | |
run: pnpm run type-check:full | |
test_matrix: | |
name: 'Test' | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
strategy: | |
matrix: | |
node-version: [20, 22] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.11.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v5 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Run tests | |
run: pnpm test | |
# separate "test" job to set as required in branch protections, | |
# as the matrix build names above change each time Node versions change | |
test: | |
runs-on: ubuntu-latest | |
needs: test_matrix | |
if: ${{ !cancelled() }} | |
steps: | |
- name: All matrix versions passed | |
if: ${{ !(contains(needs.*.result, 'failure')) }} | |
run: exit 0 | |
- name: Some matrix version failed | |
if: ${{ contains(needs.*.result, 'failure') }} | |
run: exit 1 |