chore(deps): update vite to ^7.3.5 (stable33) #1280
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: 2024 Nextcloud GmbH and Nextcloud contributors | |
| # SPDX-License-Identifier: MIT | |
| name: Playwright Tests | |
| on: | |
| pull_request: | |
| branches: [main, stable3*] | |
| permissions: | |
| contents: read | |
| jobs: | |
| playwright: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| shardIndex: [1, 2, 3] | |
| shardTotal: [3] | |
| steps: | |
| - name: Checkout app | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Check composer.json | |
| id: check_composer | |
| uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0 | |
| with: | |
| files: 'composer.json' | |
| - name: Install composer dependencies | |
| if: steps.check_composer.outputs.files_exists == 'true' | |
| run: composer install --no-dev | |
| - name: Read package.json | |
| uses: nextcloud-libraries/parse-package-engines-action@122ae05d4257008180a514e1ddeb0c1b9d094bdd # v0.1.0 | |
| id: versions | |
| - name: Set up node | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: ${{ steps.versions.outputs.node-version }} | |
| - name: Set up npm | |
| run: npm i -g 'npm@${{ steps.versions.outputs.steps.versions.outputs.package-manager-version }}' | |
| - name: Install node dependencies & build app | |
| env: | |
| CYPRESS_INSTALL_BINARY: 0 | |
| run: | | |
| npm ci | |
| npm run build --if-present | |
| - name: Install Playwright Browsers | |
| run: npx playwright install chromium --only-shell | |
| - name: Run Playwright tests | |
| run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | |
| - name: Upload results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report_shard${{ matrix.shardIndex }} | |
| path: test-results/ | |
| retention-days: 7 | |
| summary: | |
| 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 |