ci(32bit): use custom image to run PHP unit tests on 32bit #1899
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: 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 " | |
| apt-get update && | |
| apt-get install -y unzip && | |
| 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" |