Skip to content

chore(deps-dev): Bump psalm/phar from 6.7.1 to 6.16.1 #80

chore(deps-dev): Bump psalm/phar from 6.7.1 to 6.16.1

chore(deps-dev): Bump psalm/phar from 6.7.1 to 6.16.1 #80

Workflow file for this run

# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: PHPUnit
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: phpunit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-22.04
name: PHPUnit • PHP ${{ matrix.php-version }} • ${{ matrix.server-version }}
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3']
server-version: ['master']
steps:
- name: Set app env
run: echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Checkout server
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-version }}
- name: Checkout AppAPI
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
path: apps/${{ env.APP_NAME }}
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
with:
php-version: ${{ matrix.php-version }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite3, pdo_sqlite
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install app dependencies
working-directory: apps/${{ env.APP_NAME }}
run: composer i
- name: Set up Nextcloud
run: |
mkdir data
./occ maintenance:install --verbose --database=sqlite --admin-user admin --admin-pass admin
./occ app:enable --force ${{ env.APP_NAME }}
- name: Run PHPUnit
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:unit
phpunit-summary:
permissions:
contents: none
runs-on: ubuntu-22.04
needs: [phpunit]
name: PHPUnit-OK
steps:
- run: echo "PHPUnit tests passed successfully"