Skip to content

chore: bump major dependencies and migrate to ESLint flat config (#6) #14

chore: bump major dependencies and migrate to ESLint flat config (#6)

chore: bump major dependencies and migrate to ESLint flat config (#6) #14

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Type check
run: pnpm run type-check
- name: Format and lint
run: pnpm run lf
- name: Run unit tests
run: pnpm run test:unit
- name: Build for production
run: pnpm run build
- name: Install Playwright
run: pnpm exec playwright install --with-deps
- name: Install Microsoft Edge
run: pnpm exec playwright install msedge
- name: Run e2e tests
uses: coactions/setup-xvfb@v1
with:
run: pnpm run test:e2e:ci
- name: Upload test report
uses: actions/upload-artifact@v4
if: ${{ always() && !env.ACT }}
with:
name: playwright-report
path: playwright-report/
retention-days: 1