Refactor: Extract getTableCellComponent helper for better reusability
#1520
Workflow file for this run
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
| # SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors | |
| # SPDX-License-Identifier: MIT | |
| name: Playwright | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - stable* | |
| concurrency: | |
| group: playwright-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| APP_NAME: tables | |
| jobs: | |
| playwright: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| server-versions: ['stable33', 'stable34', 'master'] | |
| name: Playwright (${{ matrix.server-versions }}) | |
| steps: | |
| - name: Checkout app | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| cache: 'npm' | |
| node-version-file: 'package.json' | |
| - name: Set up dependencies | |
| run: composer i --no-dev | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build app | |
| run: TESTING=true npm run build --if-present | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Playwright tests | |
| run: npx playwright test | |
| env: | |
| SERVER_BRANCH: ${{ matrix.server-versions }} | |
| - name: Show logs | |
| if: failure() | |
| run: | | |
| for id in $(docker ps -aq); do | |
| docker container inspect "$id" --format '=== Logs for container {{.Name}} ===' | |
| docker logs "$id" >> nextcloud.log | |
| done | |
| echo '=== Nextcloud server logs ===' | |
| docker exec nextcloud-e2e-test-server_tables cat data/nextcloud.log | |
| - name: Upload test results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| if: always() | |
| with: | |
| name: playwright-results-${{ matrix.server-versions }} | |
| path: | | |
| playwright/test-results/ | |
| test-results/ | |
| retention-days: 5 | |
| summary: | |
| permissions: | |
| contents: none | |
| runs-on: ubuntu-latest-low | |
| needs: playwright | |
| if: always() | |
| name: playwright-summary | |
| steps: | |
| - name: Summary status | |
| run: if ${{ needs.playwright.result != 'success' && needs.playwright.result != 'skipped' }}; then exit 1; fi |