diff --git a/.github/workflows/phpunit-32bits.yml b/.github/workflows/phpunit-32bits.yml index 17453968be013..f30ebabf3c894 100644 --- a/.github/workflows/phpunit-32bits.yml +++ b/.github/workflows/phpunit-32bits.yml @@ -1,5 +1,6 @@ # SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors # SPDX-License-Identifier: MIT + name: PHPUnit 32bits on: @@ -38,22 +39,53 @@ jobs: persist-credentials: false submodules: true - - name: Set up dependencies + - name: Install 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" + composer install --no-interaction --prefer-dist + " - - name: Set up Nextcloud + - name: Set up Nextcloud (SQLite in tmpfs) 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" + set -e + + echo '>> Preparing tmpfs SQLite database' + mkdir -p /dev/shm/nc-db data + export SQLITE_TMPDIR=/dev/shm + + echo '>> Installing Nextcloud' + ./occ maintenance:install \ + --verbose \ + --database=sqlite \ + --database-name=/dev/shm/nc-db/nextcloud.db \ + --database-user=autotest \ + --database-pass=rootpassword \ + --admin-user=admin \ + --admin-pass=admin + + echo '>> Disable SQLite WAL for stability' + php -r \" + \$db = new PDO('sqlite:/dev/shm/nc-db/nextcloud.db'); + \$db->exec('PRAGMA journal_mode=DELETE;'); + \" + + echo '>> Enabling all test apps' + 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" + args: /bin/sh -c " + composer run test -- \ + --exclude-group PRIMARY-azure \ + --exclude-group PRIMARY-s3 \ + --exclude-group PRIMARY-swift \ + --exclude-group Memcached \ + --exclude-group Redis \ + --exclude-group RoutingWeirdness + " diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a67dc0d32ed2d..edbd1e6a51e55 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,8 +7,10 @@ on: schedule: - cron: "0 0 * * *" +# Give the GITHUB_TOKEN the necessary permissions permissions: contents: read + issues: write jobs: stale: @@ -16,13 +18,10 @@ jobs: if: ${{ github.repository_owner != 'nextcloud-gmbh' }} - permissions: - issues: write - steps: - uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v9 with: - repo-token: ${{ secrets.COMMAND_BOT_PAT }} + repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: > This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. @@ -33,5 +32,3 @@ jobs: exempt-issue-labels: '1. to develop,2. developing,3. to review,4. to release,security' days-before-stale: 30 days-before-close: 14 - # debug-only: true -