Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable27] Handle missing disk versions #2762

Closed
wants to merge 96 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
9c2cfe8
chore(CI): Adjust testing matrix for Nextcloud 27 on stable27
nickvergessen May 17, 2023
3fd6d31
15.0.0-beta2
icewind1991 May 22, 2023
5fd4529
Merge pull request #2400 from nextcloud/v15b2
icewind1991 May 22, 2023
976d172
Fix(l10n): Update translations from Transifex
nextcloud-bot May 27, 2023
0e0bb64
Merge pull request #2392 from nextcloud/update-stable27-target-versions
icewind1991 Jun 1, 2023
e6b8923
fix PHP 8.2 ${var} depricated
march42 Jun 1, 2023
5e7a6dc
Merge pull request #2417 from nextcloud/backport/2413/stable27
solracsf Jun 3, 2023
bc67e18
update to renamed object store scanner for 27
icewind1991 Jun 7, 2023
02a7e13
15.0.0
icewind1991 Jun 7, 2023
725f556
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 8, 2023
74419d5
chore: update workflows from templates
skjnldsv Jun 1, 2023
eb03c7a
fix stub
icewind1991 Jun 9, 2023
b2c1c5e
Merge pull request #2423 from nextcloud/release-15
icewind1991 Jun 9, 2023
a75a4af
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 13, 2023
5f14b2d
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 15, 2023
ec06c59
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 16, 2023
91b095d
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 18, 2023
aabf874
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 20, 2023
a558bf9
Check if index exists before trying to delete it
solracsf Jun 19, 2023
6aeedf1
Merge pull request #2436 from nextcloud/backport/2435/stable27
solracsf Jun 20, 2023
cb626b2
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 26, 2023
4e411e6
Fix(l10n): Update translations from Transifex
nextcloud-bot Jun 27, 2023
c0db43c
fix: fix open groupfolder in files
skjnldsv Jul 8, 2023
01bc9bc
Merge pull request #2458 from nextcloud/backport/2457/stable27
skjnldsv Jul 8, 2023
fbd5bba
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 9, 2023
5659ad7
preload the acl rules for the root of the groupfolders
icewind1991 Jul 6, 2023
30ce679
Merge pull request #2462 from nextcloud/backport/2453/stable27
icewind1991 Jul 12, 2023
015e233
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 13, 2023
2e253e4
15.0.1
icewind1991 Jul 17, 2023
6d6342f
Merge pull request #2472 from nextcloud/release-15.0.1
icewind1991 Jul 17, 2023
aa671db
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 18, 2023
5a6b633
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 19, 2023
1662743
Fix(l10n): Update translations from Transifex
nextcloud-bot Jul 21, 2023
4e9c1ab
Check if $user is set before calling it
solracsf Jul 19, 2023
7fe021c
Merge pull request #2481 from nextcloud/backport/2476/stable27
solracsf Jul 21, 2023
63e6659
Fix(l10n): Update translations from Transifex
nextcloud-bot Aug 8, 2023
b83da6d
15.0.2
icewind1991 Aug 8, 2023
107fbb3
cleanup acl when deleting groups
icewind1991 Aug 9, 2023
72b1ca7
Merge pull request #2505 from nextcloud/backport/2504/stable27
icewind1991 Aug 10, 2023
5ae4de3
Merge pull request #2501 from nextcloud/release-15.0.2
icewind1991 Aug 11, 2023
e388e16
Fix(l10n): Update translations from Transifex
nextcloud-bot Aug 12, 2023
93a9a29
Fix(l10n): Update translations from Transifex
nextcloud-bot Aug 13, 2023
a3d8b34
WIP
artonge Sep 6, 2023
1a34c53
Bump app version ton 15.1.0
artonge Sep 7, 2023
e55cdde
Merge pull request #2544 from nextcloud/backport/2543/stable27
icewind1991 Sep 11, 2023
2c7d869
Fix(l10n): Update translations from Transifex
nextcloud-bot Sep 12, 2023
85f7118
Revert "Merge pull request #2543 from nextcloud/artonge/feat/enable_n…
artonge Sep 12, 2023
68f6cd5
Bump version to 15.2.0
artonge Sep 12, 2023
ccb4ed7
Merge pull request #2549 from nextcloud/artonge/revert/2544
icewind1991 Sep 12, 2023
3007828
Adapt version backend to new features
artonge Sep 6, 2023
cfd6ef8
Bump version to 15.3.0
artonge Sep 12, 2023
6008669
Merge pull request #2550 from nextcloud/artonge/apply/2544
icewind1991 Sep 12, 2023
0565afa
pass around preload rules in acl wrapper instead of relying on the cache
icewind1991 Sep 17, 2023
0d3274e
pass around preload rules for root acl instead of relying on the cache
icewind1991 Sep 17, 2023
7cc2c44
clearify the acl logic a bit
icewind1991 Sep 19, 2023
6deffd9
Merge pull request #2561 from nextcloud/backport/2560/stable27
icewind1991 Sep 19, 2023
f45d001
15.3.1
icewind1991 Sep 20, 2023
6754e20
Merge pull request #2567 from nextcloud/release-15.3.1
icewind1991 Sep 20, 2023
e62f07f
Fix(l10n): Update translations from Transifex
nextcloud-bot Sep 28, 2023
3ee7d5d
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 22, 2023
ab862d1
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 23, 2023
97415a8
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 24, 2023
a0812fa
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 25, 2023
7a112ac
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 30, 2023
0893a3d
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 1, 2023
b2ab4d6
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 2, 2023
47f6237
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 3, 2023
5bc1661
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 12, 2023
58c4fef
Fix(client#propPatch): Escape *all* occurences of #
marcelklehr Dec 13, 2023
38dcf0b
Merge pull request #2674 from nextcloud/backport/2671/stable27
marcelklehr Dec 13, 2023
dfcdca5
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 15, 2023
1798505
Drop need of user folder
artonge Dec 13, 2023
44b2f92
Merge pull request #2686 from nextcloud/backport/2640/stable27
artonge Dec 18, 2023
52c52cc
v15.3.2
artonge Dec 18, 2023
cad8659
Merge pull request #2687 from nextcloud/artonge/release/v15.3.2
artonge Dec 18, 2023
6337db6
fix(ACL): don't put inherited ACL permissions in the propPatch reques…
Antreesy Dec 8, 2023
558364d
Merge pull request #2688 from nextcloud/backport/2660/stable27
Antreesy Dec 18, 2023
494dcdc
Emit hook when restoring a file from trashbin
come-nc Nov 27, 2023
5f9e2dd
Merge pull request #2709 from nextcloud/backport/2641/stable27
come-nc Jan 2, 2024
a5ead96
Add a listener to update trashed items when parent is renamed
come-nc Nov 28, 2023
711d4cb
Use getInternalPath instead of replacement regex
come-nc Nov 28, 2023
fbf7303
Fix comment in lib/Trash/TrashManager.php
come-nc Jan 2, 2024
34ed660
fix downloading trashbin items
icewind1991 Jan 3, 2024
520a30d
Fix(l10n): Update translations from Transifex
nextcloud-bot Jan 4, 2024
a306c23
fix: Update test stub
Pytal Jan 4, 2024
54beb6a
Merge pull request #2716 from nextcloud/backport/2714/stable27
Pytal Jan 4, 2024
23bc89a
don't apply acls when scanning
icewind1991 Nov 27, 2023
fcdafa0
Merge pull request #2731 from nextcloud/backport/2642/stable27
icewind1991 Jan 9, 2024
14d7da2
15.3.3
icewind1991 Jan 9, 2024
752b9f9
Fix(l10n): Update translations from Transifex
nextcloud-bot Jan 10, 2024
0e36f90
Update psalm baseline
come-nc Jan 11, 2024
8dbac82
Merge pull request #2713 from nextcloud/backport/2644/stable27
come-nc Jan 11, 2024
eba6abc
Merge pull request #2735 from nextcloud/release-15.3.3
icewind1991 Jan 12, 2024
dfc6a14
Fix(l10n): Update translations from Transifex
nextcloud-bot Jan 16, 2024
4e3a0e6
Fix(l10n): Update translations from Transifex
nextcloud-bot Jan 17, 2024
ffe908a
Handle missing disk versions
solracsf Jan 17, 2024
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
13 changes: 7 additions & 6 deletions .github/workflows/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
path: ${{ env.APP_NAME }}

Expand All @@ -44,7 +44,7 @@ jobs:
expression: "//info//dependencies//nextcloud/@min-version"

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2
uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1
id: versions
# Continue if no package.json
continue-on-error: true
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

Expand All @@ -66,7 +66,7 @@ jobs:
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Set up php ${{ env.PHP_VERSION }}
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
Expand Down Expand Up @@ -126,9 +126,10 @@ jobs:
unzip latest-$NCVERSION.zip

- name: Checkout server master fallback
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
if: ${{ steps.server-checkout.outcome != 'success' }}
with:
submodules: true
repository: nextcloud/server
path: nextcloud

Expand All @@ -148,7 +149,7 @@ jobs:
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}

- name: Attach tarball to github release
uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 # v2
uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689 # v2
id: attach_to_release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
name: node
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2
uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1
id: versions
with:
fallbackNode: '^16'
fallbackNpm: '^7'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: PHPUnit
name: PHPUnit mysql

on:
pull_request:
Expand Down Expand Up @@ -39,11 +39,11 @@ jobs:
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']
server-versions: ['master']
server-versions: ['stable27']

services:
mysql:
image: mariadb:10.5
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
ports:
- 4444:3306/tcp
env:
Expand All @@ -62,23 +62,25 @@ jobs:
echo "SELECT @@sql_mode;" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword

- name: Checkout server
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-versions }}

- name: Checkout app
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, fileinfo, intl, mysql, pdo_mysql
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -99,7 +101,7 @@ jobs:
DB_PORT: 4444
run: |
mkdir data
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
./occ app:enable --force ${{ env.APP_NAME }}

- name: Check PHPUnit script is defined
Expand Down Expand Up @@ -133,6 +135,11 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:integration

- name: Print logs
if: always()
run: |
cat data/nextcloud.log

- name: Skipped
# Fail the action when neither unit nor integration tests ran
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
Expand Down
36 changes: 29 additions & 7 deletions .github/workflows/phpunit-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: PHPUnit
name: PHPUnit OCI

on:
pull_request:
Expand Down Expand Up @@ -39,38 +39,55 @@ jobs:
strategy:
matrix:
php-versions: ['8.0']
server-versions: ['master']
server-versions: ['stable27']

services:
oracle:
image: deepdiver/docker-oracle-xe-11g # 'wnameless/oracle-xe-11g-r2'
image: ghcr.io/gvenzl/oracle-xe:11

# Provide passwords and other environment variables to container
env:
ORACLE_RANDOM_PASSWORD: true
APP_USER: autotest
APP_USER_PASSWORD: owncloud

# Forward Oracle port
ports:
- 1521:1521/tcp

# Provide healthcheck script options for startup
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10

steps:
- name: Set app env
run: |
# Split and keep last
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

- name: Checkout server
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-versions }}

- name: Checkout app
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, fileinfo, intl, sqlite, pdo_sqlite, oci8
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, oci8
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -125,6 +142,11 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:integration

- name: Print logs
if: always()
run: |
cat data/nextcloud.log

- name: Skipped
# Fail the action when neither unit nor integration tests ran
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/phpunit-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: PHPUnit
name: PHPUnit pgsql

on:
pull_request:
Expand Down Expand Up @@ -39,11 +39,11 @@ jobs:
strategy:
matrix:
php-versions: ['8.0']
server-versions: ['master']
server-versions: ['stable27']

services:
postgres:
image: postgres:14
image: ghcr.io/nextcloud/continuous-integration-postgres-14:latest
ports:
- 4444:5432/tcp
env:
Expand All @@ -59,23 +59,25 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

- name: Checkout server
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-versions }}

- name: Checkout app
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, fileinfo, intl, pgsql, pdo_pgsql
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -96,7 +98,7 @@ jobs:
DB_PORT: 4444
run: |
mkdir data
./occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
./occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
./occ app:enable --force ${{ env.APP_NAME }}

- name: Check PHPUnit script is defined
Expand Down Expand Up @@ -130,6 +132,11 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:integration

- name: Print logs
if: always()
run: |
cat data/nextcloud.log

- name: Skipped
# Fail the action when neither unit nor integration tests ran
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/phpunit-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: PHPUnit
name: PHPUnit sqlite

on:
pull_request:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
matrix:
php-versions: ['8.0']
server-versions: ['master']
server-versions: ['stable27']

steps:
- name: Set app env
Expand All @@ -48,23 +48,25 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

- name: Checkout server
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-versions }}

- name: Checkout app
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -85,7 +87,7 @@ jobs:
DB_PORT: 4444
run: |
mkdir data
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
./occ app:enable --force ${{ env.APP_NAME }}

- name: Check PHPUnit script is defined
Expand Down Expand Up @@ -119,6 +121,11 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:integration

- name: Print logs
if: always()
run: |
cat data/nextcloud.log

- name: Skipped
# Fail the action when neither unit nor integration tests ran
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit-summary-when-unrelated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: PHPUnit
name: PHPUnit summary

on:
pull_request:
Expand Down
Loading
Loading