chore(deps): update root-packages (major) #7375
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: | |
types: [opened, synchronize] | |
paths-ignore: | |
- LICENSE | |
- '.vscode/**' | |
- .github/CODEOWNERS | |
- .github/FUNDING.yml | |
- '.github/ISSUE_TEMPLATE/**' | |
- .gitattributes | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
- name: 🏢 Lint Monorepo | |
run: nr lint:monorepo | |
- name: 💪 Lint | |
run: nr lint | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: 📦 Install | |
run: nci | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
- name: 🔗 Typecheck | |
run: nr typecheck | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [20.x] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
- name: Build | |
run: nr build | |
- name: Test | |
run: nr test | |
test-e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
- name: Install Playwright | |
run: pnpm exec playwright install | |
- name: Build | |
run: nr build | |
- name: Test | |
run: nr test:e2e | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |