#1404 re-enable playwright VR tests #1915
This file contains 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: "Test UI" | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
lint-and-typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup-vuu-ui | |
- run: cd ./vuu-ui && npm run build:worker | |
- run: cd ./vuu-ui && npm run lint | |
- run: cd ./vuu-ui && npm run typecheck | |
vitest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup-vuu-ui | |
- run: cd ./vuu-ui && npm run test:vite | |
playwright: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup-vuu-ui | |
- name: Build Showcase | |
run: cd ./vuu-ui && npm run showcase:build | |
- name: Launch Showcase | |
run: cd ./vuu-ui && npm run showcase:preview& | |
- name: Install Playwright Browsers | |
run: cd ./vuu-ui && npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: cd ./vuu-ui && npm run test:playwright | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-vr | |
path: playwright-report | |
retention-days: 30 | |
cypress-component: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup-vuu-ui | |
- name: Build Worker | |
run: cd ./vuu-ui && npm run build:worker | |
- name: Run component tests in Chrome | |
uses: cypress-io/github-action@bd9dda317ed2d4fbffc808ba6cdcd27823b2a13b | |
with: | |
component: true | |
install: false | |
working-directory: ./vuu-ui | |
browser: chrome | |
- name: Run component tests in Edge | |
uses: cypress-io/github-action@bd9dda317ed2d4fbffc808ba6cdcd27823b2a13b | |
with: | |
component: true | |
install: false | |
working-directory: ./vuu-ui | |
browser: edge | |
# ensure the vuu example still builds | |
vuu-app-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup-vuu-ui | |
- name: Build Vuu Libraries | |
run: cd ./vuu-ui && npm run build | |
- name: Build Vuu app | |
run: cd ./vuu-ui && npm run build:app |