chore(deps-dev): bump @nextcloud/vite-config from 2.5.2 to 2.5.4 #124
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: 2026 Etherpad contributors | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| # | |
| # Modeled on https://github.com/nextcloud/notes/blob/main/.github/workflows/phpunit.yml | |
| # The test suite is stub-based (see tests/phpunit/bootstrap.php), so no real | |
| # Nextcloud server is required — only a PHP toolchain with composer. | |
| name: PHPUnit | |
| on: pull_request | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: phpunit-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| src: ${{ steps.changes.outputs.src }} | |
| steps: | |
| - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | |
| id: changes | |
| continue-on-error: true | |
| with: | |
| filters: | | |
| src: | |
| - '.github/workflows/phpunit.yml' | |
| - 'composer.*' | |
| - 'lib/**' | |
| - 'tests/phpunit/**' | |
| - 'phpunit.xml.dist' | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: needs.changes.outputs.src != 'false' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ['8.2', '8.3', '8.4'] | |
| name: PHP ${{ matrix.php-versions }} unit tests | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| tools: composer:v2 | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT" | |
| - name: Cache composer dependencies | |
| uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-composer-${{ matrix.php-versions }}- | |
| - name: Install dependencies | |
| run: composer install --no-progress --prefer-dist | |
| - name: Run PHPUnit | |
| run: composer test:phpunit | |
| summary: | |
| runs-on: ubuntu-latest | |
| needs: phpunit | |
| if: always() | |
| name: phpunit-summary | |
| steps: | |
| - run: | | |
| result="${{ needs.phpunit.result }}" | |
| if [ "$result" != "success" ] && [ "$result" != "skipped" ]; then | |
| exit 1 | |
| fi |