This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
forked from nextcloud/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nextcloud:master' into master
- Loading branch information
Showing
1,420 changed files
with
24,000 additions
and
6,187 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: FTP | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
paths: | ||
- 'apps/files_external/**' | ||
pull_request: | ||
paths: | ||
- 'apps/files_external/**' | ||
|
||
env: | ||
APP_NAME: files_external | ||
|
||
jobs: | ||
ftp-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
# do not stop on another job's failure | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.4', '8.0'] | ||
ftpd: ['proftpd', 'vsftpd', 'pure-ftpd'] | ||
|
||
name: php${{ matrix.php-versions }}-${{ matrix.ftpd }} | ||
|
||
steps: | ||
- name: Checkout server | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up ftpd | ||
run: | | ||
sudo mkdir /tmp/ftp | ||
sudo chown -R 0777 /tmp/ftp | ||
if [[ "${{ matrix.ftpd }}" == 'proftpd' ]]; then docker run --name ftp -d --net host -e FTP_USERNAME=test -e FTP_PASSWORD=test -v /tmp/ftp:/home/test hauptmedia/proftpd; fi | ||
if [[ "${{ matrix.ftpd }}" == 'vsftpd' ]]; then docker run --name ftp -d --net host -e FTP_USER=test -e FTP_PASS=test -e PASV_ADDRESS=127.0.0.1 -v /tmp/ftp:/home/vsftpd/test fauria/vsftpd; fi | ||
if [[ "${{ matrix.ftpd }}" == 'pure-ftpd' ]]; then docker run --name ftp -d --net host -e "PUBLICHOST=localhost" -e FTP_USER_NAME=test -e FTP_USER_PASS=test -e FTP_USER_HOME=/home/test -v /tmp/ftp2:/home/test -v /tmp/ftp2:/etc/pure-ftpd/passwd stilliard/pure-ftpd; fi | ||
- name: Set up php ${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: phpunit | ||
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, zip, gd | ||
|
||
- name: Set up Nextcloud | ||
run: | | ||
mkdir data | ||
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password | ||
./occ app:enable --force ${{ env.APP_NAME }} | ||
php -S localhost:8080 & | ||
- name: smoketest ftp | ||
run: | | ||
php -r 'var_dump(file_put_contents("ftp://test:test@localhost/ftp.txt", "asd"));' | ||
php -r 'var_dump(file_get_contents("ftp://test:test@localhost/ftp.txt"));' | ||
php -r 'var_dump(mkdir("ftp://test:test@localhost/asdads"));' | ||
ls -l /tmp/ftp | ||
- name: PHPUnit | ||
run: | | ||
echo "<?php return ['run' => true,'host' => 'localhost','user' => 'test','password' => 'test', 'root' => ''];" > apps/${{ env.APP_NAME }}/tests/config.ftp.php | ||
phpunit --configuration tests/phpunit-autotest-external.xml apps/files_external/tests/Storage/FtpTest.php | ||
- name: ftpd logs | ||
if: always() | ||
run: | | ||
docker logs ftp | ||
ftp-summary: | ||
runs-on: ubuntu-latest | ||
needs: ftp-tests | ||
|
||
if: always() | ||
|
||
steps: | ||
- name: Summary status | ||
run: if ${{ needs.ftp-tests.result != 'success' }}; then exit 1; fi |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
name: S3 External storage | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
paths: | ||
- 'apps/files_external/**' | ||
pull_request: | ||
paths: | ||
- 'apps/files_external/**' | ||
|
||
env: | ||
APP_NAME: files_external | ||
|
||
jobs: | ||
s3-external-tests-minio: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
# do not stop on another job's failure | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.4', '8.0'] | ||
|
||
name: php${{ matrix.php-versions }}-minio | ||
|
||
services: | ||
minio: | ||
env: | ||
MINIO_ACCESS_KEY: minio | ||
MINIO_SECRET_KEY: minio123 | ||
image: bitnami/minio:2021.10.6 | ||
ports: | ||
- "9000:9000" | ||
|
||
steps: | ||
- name: Checkout server | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up php ${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: phpunit | ||
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, zip, gd | ||
|
||
- name: Set up Nextcloud | ||
run: | | ||
mkdir data | ||
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password | ||
./occ app:enable --force ${{ env.APP_NAME }} | ||
php -S localhost:8080 & | ||
- name: PHPUnit | ||
run: | | ||
echo "<?php return ['run' => true,'hostname' => 'localhost','key' => 'minio','secret' => 'minio123', 'bucket' => 'bucket', 'port' => 9000, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/${{ env.APP_NAME }}/tests/config.amazons3.php | ||
phpunit --configuration tests/phpunit-autotest-external.xml apps/files_external/tests/Storage/Amazons3Test.php | ||
phpunit --configuration tests/phpunit-autotest-external.xml apps/files_external/tests/Storage/VersionedAmazonS3Test.php | ||
- name: S3 logs | ||
if: always() | ||
run: | | ||
docker ps -a | ||
docker logs $(docker ps -aq) | ||
s3-external-tests-localstack: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
# do not stop on another job's failure | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.4', '8.0'] | ||
|
||
name: php${{ matrix.php-versions }}-localstack | ||
|
||
services: | ||
minio: | ||
env: | ||
SERVICES: s3 | ||
DEBUG: 1 | ||
image: localstack/localstack:0.12.7 | ||
ports: | ||
- "4566:4566" | ||
|
||
steps: | ||
- name: Checkout server | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up php ${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: phpunit | ||
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, zip, gd | ||
|
||
- name: Set up Nextcloud | ||
run: | | ||
mkdir data | ||
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password | ||
./occ app:enable --force ${{ env.APP_NAME }} | ||
php -S localhost:8080 & | ||
- name: PHPUnit | ||
run: | | ||
echo "<?php return ['run' => true,'hostname' => 'localhost','key' => 'ignored','secret' => 'ignored', 'bucket' => 'bucket', 'port' => 4566, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/${{ env.APP_NAME }}/tests/config.amazons3.php | ||
phpunit --configuration tests/phpunit-autotest-external.xml apps/files_external/tests/Storage/Amazons3Test.php | ||
phpunit --configuration tests/phpunit-autotest-external.xml apps/files_external/tests/Storage/VersionedAmazonS3Test.php | ||
- name: S3 logs | ||
if: always() | ||
run: | | ||
docker ps -a | ||
docker logs $(docker ps -aq) | ||
s3-external-summary: | ||
runs-on: ubuntu-latest | ||
needs: [s3-external-tests-minio, s3-external-tests-localstack] | ||
|
||
if: always() | ||
|
||
steps: | ||
- name: Summary status | ||
run: if ${{ needs.s3-external-tests-minio.result != 'success' }} || ${{ needs.s3-external-tests-localstack.result != 'success' }}; then exit 1; fi |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,21 +22,20 @@ jobs: | |
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip | ||
coverage: none | ||
- name: Composer install | ||
run: composer i | ||
run: composer install | ||
- name: Psalm | ||
run: composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline | ||
- name: Reset composer.json and composer.lock | ||
- name: Reset composer | ||
run: | | ||
rm -rf lib/composer | ||
git checkout -- composer.json composer.lock lib/composer | ||
git clean -f lib/composer | ||
git checkout composer.json composer.lock lib/composer | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
push-to-fork: nextcloud-pr-bot/server | ||
commit-message: Update psalm baseline | ||
committer: GitHub <[email protected]> | ||
author: Nextcloud-PR-Bot <nextcloud-pr-bot@users.noreply.github.com> | ||
author: nextcloud-command <nextcloud-command@users.noreply.github.com> | ||
signoff: true | ||
branch: automated/noid/psalm-baseline-update | ||
title: '[Automated] Update psalm-baseline.xml' | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ Dan Callahan <[email protected]> | |
Dan Jones <[email protected]> | ||
Daniel <daniel@mars.(none)> | ||
Daniel Hansson <[email protected]> | ||
Daniel Kesselberg <[email protected]> kesselb <[email protected]> | ||
Daniel Köb <[email protected]> | ||
Daniel Molkentin <[email protected]> | ||
Daniele E. Domenichelli <[email protected]> | ||
|
@@ -214,6 +215,7 @@ Lennart Rosam <[email protected]> | |
Sebastian Döll <[email protected]> libasys <[email protected]> | ||
Lode Hoste <[email protected]> | ||
lolozere <[email protected]> | ||
Louis Chemineau <[email protected]> Louis Chemineau <[email protected]> | ||
Lorenzo M. Catucci <[email protected]> | ||
Lukas Reschke <[email protected]> Lukas Reschke <[email protected]> | ||
Lukas Reschke <[email protected]> Lukas Reschke <[email protected]> | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.