Update cypress-io/github-action digest to 783cb3f #4253
This file contains hidden or 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: | |
| push: | |
| branches: | |
| - "main" | |
| - "release-*" | |
| pull_request: | |
| paths: | |
| - "*" | |
| - '.github/workflows/test-ui.yml' | |
| - "vuu-ui/**" | |
| jobs: | |
| lint-and-typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Node & dependencies | |
| 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@v6 | |
| - 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 | |
| cypress-component: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Node & dependencies | |
| 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@783cb3f07983868532cabaedaa1e6c00ff4786a8 | |
| with: | |
| component: true | |
| install: false | |
| working-directory: ./vuu-ui | |
| browser: chrome | |
| - name: Run component tests in Edge | |
| uses: cypress-io/github-action@783cb3f07983868532cabaedaa1e6c00ff4786a8 | |
| with: | |
| component: true | |
| install: false | |
| working-directory: ./vuu-ui | |
| browser: edge | |
| playwright-component: | |
| runs-on: ubuntu-latest | |
| name: playwright-component (${{ matrix.browser }}) | |
| strategy: | |
| matrix: | |
| browser: [chromium, firefox, webkit] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Node & dependencies | |
| uses: ./.github/actions/setup-vuu-ui | |
| - name: Build Worker | |
| run: cd ./vuu-ui && npm run build:worker | |
| - name: Install Playwright Browser | |
| run: cd ./vuu-ui && npx playwright install --with-deps ${{ matrix.browser }} | |
| - name: Run Playwright component tests | |
| run: cd ./vuu-ui && npx playwright test --config=playwright-ct.config.ts --project=${{ matrix.browser }} | |
| - name: Upload blob report to GitHub Actions Artifacts | |
| uses: actions/upload-artifact@v5 | |
| if: always() | |
| with: | |
| name: blob-report-${{ matrix.browser }} | |
| path: vuu-ui/blob-report/ | |
| retention-days: 10 | |
| playwright-merge-reports: | |
| runs-on: ubuntu-latest | |
| needs: playwright-component | |
| if: always() | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Download blob reports from GitHub Actions Artifacts | |
| uses: actions/download-artifact@v6 | |
| with: | |
| path: all-blob-reports | |
| pattern: blob-report-* | |
| merge-multiple: true | |
| - name: Install Node & dependencies | |
| uses: ./.github/actions/setup-vuu-ui | |
| - name: Merge into HTML and JSON Reports | |
| run: PLAYWRIGHT_JSON_OUTPUT_FILE=playwright-report/test-results.json npx playwright merge-reports --reporter html,json ./all-blob-reports | |
| - name: Upload Merged Playwright Report | |
| uses: actions/upload-artifact@v5 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 10 | |
| - name: Add Playwright Results to Summary | |
| if: always() | |
| run: ./.github/scripts/generate-playwright-summary.sh playwright-report/test-results.json >> $GITHUB_STEP_SUMMARY | |
| # ensure the vuu example still builds | |
| vuu-app-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Node & dependencies | |
| 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 |