Skip to content

refactor: route all log writes through a single LogWriter #19

refactor: route all log writes through a single LogWriter

refactor: route all log writes through a single LogWriter #19

Workflow file for this run

# SPDX-FileCopyrightText: 2026 [ernolf] Raphael Gradenwitz <raphael.gradenwitz@googlemail.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
name: PHPUnit NC
on:
pull_request:
branches:
- main
- master
- stable*
workflow_dispatch:
concurrency:
group: phpunit-nc-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
phpunit-nc:
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 }}
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,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/admin_audit_http_client
- name: Install app dependencies
working-directory: nextcloud/apps/admin_audit_http_client
run: composer install
- name: Install Nextcloud
run: php -f nextcloud/occ maintenance:install --verbose --database sqlite --database-name nextcloud --admin-user admin --admin-pass admin
- name: Enable app
run: php -f nextcloud/occ app:enable --force admin_audit_http_client
- name: Run unit tests
working-directory: nextcloud/apps/admin_audit_http_client
run: composer run test:unit
- name: Run integration tests
working-directory: nextcloud/apps/admin_audit_http_client
run: composer run test:integration
summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: phpunit-nc
if: always()
name: phpunit-nc-summary
steps:
- name: Summary status
run: if ${{ needs.phpunit-nc.result != 'success' }}; then exit 1; fi