test(32bit): add disk space checks before/after #1998
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-slim | |
| if: ${{ github.repository_owner != 'nextcloud-gmbh' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ["8.4"] | |
| steps: | |
| - name: Checkout server | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| 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: Show disk usage before PHPUnit tests | |
| run: df -h && sudo du -sh . | |
| - name: Show disk usage inside container before tests | |
| uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest | |
| with: | |
| args: /bin/sh -c "df -h && du -sh /github/workspace" | |
| - 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" | |
| - name: Show runner disk usage after PHPUnit tests | |
| run: df -h && sudo du -sh . | |
| - name: Show disk usage inside container after tests | |
| uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest | |
| with: | |
| args: /bin/sh -c "df -h && du -sh /github/workspace" |