Skip to content

Bump @playwright/test from 1.49.0 to 1.49.1 in /src #3924

Bump @playwright/test from 1.49.0 to 1.49.1 in /src

Bump @playwright/test from 1.49.0 to 1.49.1 in /src #3924

name: SQLite End to End Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
sqlite-end-to-end-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/cache@v4
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/action-setup@v4.0.0
with:
version: 9.11.0
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "pnpm"
cache-dependency-path: src/pnpm-lock.yaml
- name: Install dependencies
run: pnpm i
- name: Build CLI tool
run: pnpm build
- name: Install Playwright's dependencies
working-directory: src/packages/end-to-end
run: pnpm playwright install --with-deps chromium
- name: Init and Import SQLite Chinook Database
working-directory: src/packages/end-to-end
run: |
pnpm import-database-sqlite
- name: Start and Test GW instance
working-directory: src/packages/end-to-end
timeout-minutes: 4
run: |
pnpm start-server &
sleep 3 &&
pnpm test-sqlite &&
pnpm test-ui-sqlite &&
killall node
- name: Add Native Module
# This step is expected to fail, as we sqlite3 contains native code
working-directory: src/packages/end-to-end/app
id: native-module
run: |
pnpm add sqlite3
pnpm build
continue-on-error: true
- name: Check Native Module Failures
# If the native module build succeeds, we want to fail the build as the native module is not supported
if: steps.native-module.outcome == 'success'
run: exit 1
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: src/packages/end-to-end/playwright-report/
retention-days: 30
env:
CI: true