Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 39 additions & 7 deletions .github/workflows/phpunit-32bits.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: PHPUnit 32bits

on:
Expand Down Expand Up @@ -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
"
9 changes: 3 additions & 6 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ on:
schedule:
- cron: "0 0 * * *"

# Give the GITHUB_TOKEN the necessary permissions
permissions:
contents: read
issues: write

jobs:
stale:
runs-on: ubuntu-latest

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.
Expand All @@ -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