Skip to content

feat(version):Added release please config #19

feat(version):Added release please config

feat(version):Added release please config #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
# 1 ▸ code
- uses: actions/checkout@v4
# 2 ▸ pnpm
- uses: pnpm/action-setup@v3
with:
version: 10.12.1
run_install: false
# 3 ▸ Node + pnpm-store cache
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
# 4 ▸ deps
- name: Install dependencies
run: pnpm install --frozen-lockfile
# 5 ▸ **cache Playwright browsers**
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright # default download dir
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-playwright-
# 6 ▸ download browsers if cache miss
- name: Install Playwright browsers
run: pnpm --filter @austinserb/react-zero-ui exec playwright install --with-deps
# 7 ▸ lint
- run: pnpm lint
name: Lint
# 8 ▸ pack, inject tarball, run tests
- run: pnpm run prepack:core
name: Pack core tarball
- run: node scripts/install-local-tarball.js
name: Inject tarball into fixtures
- run: pnpm test:vite
name: Run Vite tests
- run: pnpm test:next
name: Run Next.js tests
- run: pnpm test:unit
name: Run unit tests
- run: pnpm test:cli
name: Run CLI tests
# 9 ▸ traces on failure
- name: Upload Playwright traces on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-traces
path: packages/core/__tests__/test-results/