Skip to content

Feat/playwright ci 2 #14

Feat/playwright ci 2

Feat/playwright ci 2 #14

Workflow file for this run

name: Playwright Integration Test
on:
push:
branches:
- main
pull_request:
branches: "*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-test:
name: Playwright / Integration Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: astral-sh/setup-uv@v5
- uses: pnpm/action-setup@v4
with:
node-version: "20.x"
cache: pnpm
package_json_file: packages/package.json
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl lsof
- name: Install dependencies
run: |
pnpm -C packages/buckaroo-js-core install
- name: Run integration test
run: |
mkdir -p buckaroo/static || true
touch buckaroo/static/compiled.css
touch buckaroo/static/widget.js
touch buckaroo/static/widget.css
bash scripts/test_polars_widget_integration.sh
env:
UV_PYTHON: "3.11"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-test-results
path: |
packages/buckaroo-js-core/test-results/
packages/buckaroo-js-core/playwright-report/
retention-days: 7