Skip to content

Add basic test

Add basic test #306

Workflow file for this run

name: CI
on: push
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint:format
- run: pnpm lint:workspace
- run: pnpm test
- run: pnpm test:types
- run: pnpm lint
- run: pnpm build
- run: pnpm size
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm playwright install
- run: pnpm test:e2e
checks_old_versions:
runs-on: ubuntu-latest
strategy:
matrix:
version: [22]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: node ./tools/other-majors/prepare.mjs ${{ matrix.version }}
- run: pnpm install --no-frozen-lockfile
- run: pnpm test
- run: pnpm test:types
e2e_old_versions:
runs-on: ubuntu-latest
strategy:
matrix:
version: [22]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: node ./tools/other-majors/prepare.mjs ${{ matrix.version }}
- run: pnpm install --no-frozen-lockfile
- run: pnpm playwright install
- run: pnpm test:e2e