mirror of
https://github.com/nextcloud/server.git
synced 2026-09-28 14:03:35 +02:00
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
78 lines
2.5 KiB
YAML
78 lines
2.5 KiB
YAML
# This workflow is provided via the organization template repository
|
|
#
|
|
# https://github.com/nextcloud/.github
|
|
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
|
#
|
|
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: PHPUnit memcached
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
phpunit-memcached:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php-versions: ["8.2", "8.5"]
|
|
|
|
name: Memcached (PHP ${{ matrix.php-versions }})
|
|
|
|
services:
|
|
memcached:
|
|
image: ghcr.io/nextcloud/continuous-integration-memcached:latest # zizmor: ignore[unpinned-images]
|
|
ports:
|
|
- 11211:11211/tcp
|
|
|
|
steps:
|
|
- name: Checkout server
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
|
|
- name: Set up php ${{ matrix.php-versions }}
|
|
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 #v2.37.2
|
|
timeout-minutes: 5
|
|
with:
|
|
php-version: ${{ matrix.php-versions }}
|
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, memcached, openssl, pcntl, pdo_sqlite, posix, session, simplexml, sqlite, xmlreader, xmlwriter, zip, zlib
|
|
coverage: none
|
|
ini-file: development
|
|
ini-values: disable_functions=""
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up dependencies
|
|
run: composer i
|
|
|
|
- name: Set up Nextcloud
|
|
run: |
|
|
mkdir data
|
|
cp tests/memcached.config.php config/
|
|
cp tests/preseed-config.php config/config.php
|
|
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
|
php -f tests/enable_all.php
|
|
|
|
- name: PHPUnit memcached tests
|
|
run: composer run test -- --group Memcached --log-junit junit.xml
|
|
|
|
- name: Upload test results
|
|
if: ${{ !cancelled() }}
|
|
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
|
|
with:
|
|
flags: phpunit-memcached
|
|
|
|
- name: Print logs
|
|
if: always()
|
|
run: |
|
|
cat data/nextcloud.log
|