Skip to content

build(deps): bump thiserror from 1.0.69 to 2.0.17 #17

build(deps): bump thiserror from 1.0.69 to 2.0.17

build(deps): bump thiserror from 1.0.69 to 2.0.17 #17

Workflow file for this run

name: UX Integration Tests
on:
push:
branches: [main]
paths:
- 'ui/**'
- 'samples/**'
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ux-tests.yml'
pull_request:
branches: [main]
paths:
- 'ui/**'
- 'samples/**'
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ux-tests.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ux-tests-${{ github.ref }}
cancel-in-progress: true
env:
TEST_DB: /tmp/hone-ux-test.db
jobs:
ux-tests:
name: Playwright UX Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install Rust
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: '1.92.0'
- name: Cache cargo
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-ux-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-ux-
- name: Install OpenSSL (for SQLCipher)
run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev
- name: Build backend
run: cargo build --release --bin hone
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '24'
cache: 'npm'
cache-dependency-path: ui/package-lock.json
- name: Install UI dependencies
working-directory: ui
run: npm ci
- name: Install Playwright browsers
working-directory: ui
run: npx playwright install --with-deps chromium
- name: Build frontend
working-directory: ui
run: npm run build
# Seed test database before running tests
- name: Seed test database
run: |
echo "Initializing test database..."
./target/release/hone --no-encrypt --db $TEST_DB init
echo "Importing test data (with tagging and detection)..."
./target/release/hone --no-encrypt --db $TEST_DB import \
--file samples/test_data.csv --bank chase
echo "Verifying seeded data..."
./target/release/hone --no-encrypt --db $TEST_DB status
- name: Run Playwright UX tests
working-directory: ui
run: |
# Skip global setup since we already seeded the database
# Run all e2e test files with both github (CI annotations) and html (artifact upload) reporters
npx playwright test e2e/ --reporter=github --reporter=html
env:
CI: true
TEST_DB: ${{ env.TEST_DB }}
- name: Upload Playwright report
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
name: playwright-report
path: ui/playwright-report/
retention-days: 7
- name: Upload screenshots
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: ux-screenshots
path: ui/e2e/screenshots/
retention-days: 7