60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-License-Identifier: MIT
|
|
name: PHPUnit 32bits
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "version.php"
|
|
- ".github/workflows/phpunit-32bits.yml"
|
|
- "tests/phpunit-autotest.xml"
|
|
- "lib/private/Snowflake/*"
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "15 1 * * 1-6"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: phpunit-32bits-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
phpunit-32bits:
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php-versions: ["8.4"]
|
|
|
|
steps:
|
|
- name: Checkout server
|
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
|
|
- name: Set up dependencies
|
|
uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest
|
|
with:
|
|
args: /bin/sh -c "
|
|
git config --global --add safe.directory /github/workspace &&
|
|
composer install --no-interaction"
|
|
|
|
- name: Set up Nextcloud
|
|
uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest
|
|
with:
|
|
args: /bin/sh -c "
|
|
mkdir data &&
|
|
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin &&
|
|
php -f tests/enable_all.php"
|
|
|
|
- name: PHPUnit
|
|
uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest
|
|
with:
|
|
args: /bin/sh -c "composer run test -- --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis,RoutingWeirdness"
|