Skip to content

chore: update

chore: update #186

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
types: [opened, synchronize]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build and Test
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20, 22, 24]
runs-on: ${{ matrix.os }}
# Remote Caching enabled - configure TURBO_TOKEN and TURBO_TEAM in repository settings
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v6
with:
fetch-depth: 2
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Security Audit
run: pnpm audit --audit-level=moderate
continue-on-error: true
- name: Lint
run: pnpm lint
- name: Check package boundaries
run: pnpm check:boundaries
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
apps-e2e:
name: Apps E2E (${{ matrix.os }})
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v6
with:
fetch-depth: 2
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm build
- name: Run apps e2e
run: pnpm test:e2e
apps-playwright-e2e:
name: Apps Playwright E2E (${{ matrix.os }})
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v6
with:
fetch-depth: 2
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm build
- name: Install Playwright system dependencies
if: runner.os == 'Linux'
run: pnpm exec playwright install-deps chromium
- name: Install Playwright Chromium
run: pnpm exec playwright install chromium
- name: Run apps Playwright e2e
run: pnpm test:e2e:pw
apps-hmr-e2e:
name: Apps HMR E2E (${{ matrix.os }})
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v6
with:
fetch-depth: 2
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm build
- name: Install Playwright system dependencies
if: runner.os == 'Linux'
run: pnpm exec playwright install-deps chromium
- name: Install Playwright Chromium
run: pnpm exec playwright install chromium
- name: Run apps HMR e2e
run: pnpm test:e2e:apps:hmr