Skip to content

refactor: more code cleanup #17

refactor: more code cleanup

refactor: more code cleanup #17

Workflow file for this run

name: Drag and drop tests
on: [push, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Lint
run: nr lint
playwright:
name: "Playwright tests"
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install --frozen-lockfile
- name: Build Nuxt
run: cd docs && pnpm install && cd ..
- name: Install Playwright
run: pnpm exec playwright install chromium
- name: Spin up dev
run: pnpm dev &
- name: Run Playwright tests
run: npx playwright test vue
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30