build(deps): bump the npm group across 1 directory with 5 updates #10
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 [ernolf] Raphael Gradenwitz <[email protected]> | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| name: PHPUnit pgsql | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - stable* | |
| concurrency: | |
| group: phpunit-pgsql-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| phpunit-pgsql: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: ['8.1', '8.2', '8.3', '8.4', '8.5'] | |
| server-version: ['stable32', 'stable33', 'stable34', 'master'] | |
| exclude: | |
| # Nextcloud 33+ requires PHP >= 8.2 | |
| - php-version: '8.1' | |
| server-version: 'stable33' | |
| - php-version: '8.1' | |
| server-version: 'stable34' | |
| - php-version: '8.1' | |
| server-version: 'master' | |
| # Nextcloud 32 supports up to PHP 8.4 | |
| - php-version: '8.5' | |
| server-version: 'stable32' | |
| # Nextcloud master (35) requires PHP >= 8.3 | |
| - php-version: '8.2' | |
| server-version: 'master' | |
| name: NC ${{ matrix.server-version }} php${{ matrix.php-version }} pgsql | |
| services: | |
| postgres: | |
| image: postgres:18 | |
| ports: | |
| - 4445:5432/tcp | |
| env: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: rootpassword | |
| POSTGRES_DB: nextcloud | |
| options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5 | |
| steps: | |
| - name: Set up php${{ matrix.php-version }} | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: ctype,curl,dom,gd,iconv,intl,json,mbstring,openssl,pdo_pgsql,pgsql,posix,sqlite,xml,zip | |
| coverage: none | |
| - name: Checkout Nextcloud ${{ matrix.server-version }} | |
| run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.server-version }} nextcloud | |
| - name: Checkout app | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| path: nextcloud/apps/files_sharing_raw | |
| - name: Install app dependencies | |
| working-directory: nextcloud/apps/files_sharing_raw | |
| run: composer install | |
| - name: Install Nextcloud | |
| run: php -f nextcloud/occ maintenance:install --verbose --database pgsql --database-name nextcloud --database-host 127.0.0.1 --database-port 4445 --database-user root --database-pass rootpassword --admin-user admin --admin-pass admin | |
| - name: Enable app (runs the migration) | |
| run: php -f nextcloud/occ app:enable --force files_sharing_raw | |
| - name: Run tests | |
| working-directory: nextcloud/apps/files_sharing_raw | |
| run: composer run test:unit | |
| summary: | |
| permissions: | |
| contents: none | |
| runs-on: ubuntu-latest | |
| needs: phpunit-pgsql | |
| if: always() | |
| name: phpunit-pgsql-summary | |
| steps: | |
| - name: Summary status | |
| run: if ${{ needs.phpunit-pgsql.result != 'success' }}; then exit 1; fi |