Skip to content

fix view corner css, improve scroll to util func #87

fix view corner css, improve scroll to util func

fix view corner css, improve scroll to util func #87

Workflow file for this run

name: Test Frontend
on:
pull_request:
paths:
- "frontend/**"
defaults:
run:
working-directory: ./frontend
jobs:
# test that frontend can build without issues
test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Install packages
run: bunx msw init && bun install
- name: SSH debug
if: runner.debug == '1'
uses: mxschmitt/action-tmate@v3
- name: Run test
run: bun run build
# test that frontend has no typescript errors
test-types:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Install packages
run: bunx msw init && bun install
- name: SSH debug
if: runner.debug == '1'
uses: mxschmitt/action-tmate@v3
- name: Run test
run: bun run test:types
# test that frontend is properly formatted and linted
test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Install packages
run: bunx msw init && bun install
- name: SSH debug
if: runner.debug == '1'
uses: mxschmitt/action-tmate@v3
- name: Run test
run: bun run test:lint
# run end to end integration tests
test-e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Install packages
run: bun install
- name: SSH debug
if: runner.debug == '1'
uses: mxschmitt/action-tmate@v3
- name: Install Playwright
uses: ./.github/actions/install-playwright
with:
working-directory: ./frontend
- name: Run test
run: bun run test:e2e
- name: Upload test reports
uses: actions/upload-artifact@v4
with:
name: reports
path: |
./frontend/playwright-report
./frontend/lighthouse-report
retention-days: 14