chore(deps): update node.js to v22 #3358
Workflow file for this run
This file contains 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 | |
permissions: {} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "pnpm" | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- run: pnpm dev:prepare | |
- name: 🔠 Lint project | |
run: pnpm lint | |
- name: ✂️ Knip project | |
run: pnpm knip --workspace . | |
- name: ⚙️ Check package engines | |
run: pnpm installed-check -d --no-workspaces | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- name: Install Playwright | |
# does not need to explicitly set chromium after https://github.com/microsoft/playwright/issues/14862 is solved | |
run: pnpm playwright-core install chromium | |
- run: pnpm dev:prepare | |
- name: 🧪 Test project | |
run: pnpm test | |
- name: 🛠 Build project | |
run: pnpm build | |
- name: 💪 Type check | |
run: pnpm test:types | |
- run: pnpm dev:build | |
- name: 🟩 Coverage | |
uses: codecov/codecov-action@v5 | |
if: matrix.os != 'windows-latest' | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |