Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1404 re-enable playwright VR tests #1405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/actions/setup-vuu-ui/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Setup Vuu UI
description: "Installs NodeJS and project dependencies"

runs:
using: 'composite'
using: "composite"
steps:
- name: Install NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: 18
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
shell: bash
run: cd ./vuu-ui && npm install
run: cd ./vuu-ui && npm ci
54 changes: 28 additions & 26 deletions .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Node & dependencies
uses: ./.github/actions/setup-vuu-ui
- run: cd ./vuu-ui && npm run build:worker
Expand All @@ -19,39 +19,41 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Node & dependencies
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@v3
# - name: Install Node & dependencies
# uses: ./.github/actions/setup-vuu-ui
# - name: Install Playwright Chromium Browser
# run: cd ./vuu-ui && npx playwright install --with-deps chromium
# - name: Build Showcase
# run: cd ./vuu-ui && npm run showcase:build
# - name: Run tests
# run: |
# cd ./vuu-ui &&
# npm run test:playwright
# - uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }}
# with:
# name: playwright-report
# path: ./vuu-ui/playwright/reports/
# retention-days: 10
playwright:
timeout-minutes: 10
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node & dependencies
uses: ./.github/actions/setup-vuu-ui
- name: Install Playwright Chromium Browser
run: cd ./vuu-ui && npx playwright install --with-deps chromium
- name: Build Showcase
run: cd ./vuu-ui && npm run showcase:build
- name: Launch Showcase
run: cd ./vuu-ui && npm run showcase:preview&
- name: Run tests
run: |
cd ./vuu-ui &&
npm run test:playwright
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-vr
path: ./vuu-ui/playwright/reports/
retention-days: 10

cypress-component:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Node & dependencies
uses: ./.github/actions/setup-vuu-ui
- name: Build Worker
Expand All @@ -76,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Node & dependencies
uses: ./.github/actions/setup-vuu-ui
- name: Build Vuu Libraries
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ node_modules
yarn-debug.log*
yarn-error.log*

/vuu-ui/showcase/src/examples/**/*.js
/vuu-ui/cypress/screenshots
/vuu-ui/themes/tar-theme
/vuu-ui/playwright/reports
/vuu-ui/playwright/regression-test-results
/vuu-ui/showcase/src/examples/**/*.js

deployed_apps
dist
Expand Down
Loading
Loading