test: fix flaky tests and add benchmark/property-based test infrastructure #41
Workflow file for this run
This file contains hidden or 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: E2E Test Pipeline | |
| on: | |
| pull_request: | |
| branches: [ main, dev ] | |
| paths: | |
| - 'sensibledb-explorer/**' | |
| - 'sensibledb-db/**' | |
| - 'e2e/**' | |
| - 'playwright.config.ts' | |
| - 'scripts/e2e-test.sh' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'sensibledb-explorer/**' | |
| - 'sensibledb-db/**' | |
| - 'e2e/**' | |
| - 'playwright.config.ts' | |
| - 'scripts/e2e-test.sh' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| jobs: | |
| playwright-e2e: | |
| name: Playwright E2E Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Install root dependencies | |
| run: npm install | |
| - name: Install root dependencies | |
| run: npm install | |
| - name: Install frontend dependencies | |
| working-directory: sensibledb-explorer/src/frontend | |
| run: pnpm install | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Playwright E2E tests | |
| run: npx playwright test --reporter=list | |
| env: | |
| CI: true |