Skip to content

Commit

Permalink
#1404 renable playwright VR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heswell committed Jun 29, 2024
1 parent c3c61ae commit 3be67bf
Show file tree
Hide file tree
Showing 35 changed files with 163 additions and 723 deletions.
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/test-results
/vuu-ui/showcase/src/examples/**/*.js

deployed_apps
dist
Expand Down
Loading

0 comments on commit 3be67bf

Please sign in to comment.