Browse Source
ci: always collect and upload test results, not just on coverage runs
Signed-off-by: Spencer Murray <spencer.murray@sentry.io>
pull/52179/head
Spencer Murray
7 months ago
No known key found for this signature in database
GPG Key ID: 86F0F56E99B25932
18 changed files with
25 additions and
37 deletions
-
.github/workflows/files-external-ftp.yml
-
.github/workflows/files-external-s3.yml
-
.github/workflows/files-external-sftp.yml
-
.github/workflows/files-external-smb.yml
-
.github/workflows/files-external-webdav.yml
-
.github/workflows/files-external.yml
-
.github/workflows/node-test.yml
-
.github/workflows/object-storage-azure.yml
-
.github/workflows/object-storage-s3.yml
-
.github/workflows/object-storage-swift.yml
-
.github/workflows/phpunit-mariadb.yml
-
.github/workflows/phpunit-memcached.yml
-
.github/workflows/phpunit-mysql-sharding.yml
-
.github/workflows/phpunit-mysql.yml
-
.github/workflows/phpunit-nodb.yml
-
.github/workflows/phpunit-oci.yml
-
.github/workflows/phpunit-pgsql.yml
-
.github/workflows/phpunit-sqlite.yml
|
|
|
@ -96,7 +96,8 @@ jobs: |
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:files_external -- \ |
|
|
|
apps/files_external/tests/Storage/FtpTest.php \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -106,7 +107,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-ftp |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-ftp |
|
|
|
|
|
|
|
@ -94,7 +94,8 @@ jobs: |
|
|
|
run: composer run test:files_external -- \ |
|
|
|
apps/files_external/tests/Storage/Amazons3Test.php \ |
|
|
|
apps/files_external/tests/Storage/VersionedAmazonS3Test.php \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -104,7 +105,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-s3 |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-s3 |
|
|
|
@ -167,7 +167,8 @@ jobs: |
|
|
|
run: composer run test:files_external -- \ |
|
|
|
apps/files_external/tests/Storage/Amazons3Test.php \ |
|
|
|
apps/files_external/tests/Storage/VersionedAmazonS3Test.php \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -177,7 +178,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-s3 |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-s3 |
|
|
|
|
|
|
|
@ -85,7 +85,8 @@ jobs: |
|
|
|
run: composer run test:files_external -- \ |
|
|
|
apps/files_external/tests/Storage/SftpTest.php \ |
|
|
|
apps/files_external/tests/Storage/SFTP_KeyTest.php \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -95,7 +96,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-sftp |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-sftp |
|
|
|
|
|
|
|
@ -90,7 +90,8 @@ jobs: |
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:files_external -- --verbose \ |
|
|
|
apps/files_external/tests/Storage/SmbTest.php \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -100,7 +101,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-smb |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-smb |
|
|
|
|
|
|
|
@ -87,7 +87,8 @@ jobs: |
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:files_external -- --verbose \ |
|
|
|
apps/files_external/tests/Storage/WebdavTest.php \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -97,7 +98,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-webdav |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-webdav |
|
|
|
|
|
|
|
@ -75,7 +75,8 @@ jobs: |
|
|
|
|
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:files_external -- \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
--log-junit junit.xml \ |
|
|
|
${{ matrix.coverage && ' --coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -85,7 +86,6 @@ jobs: |
|
|
|
flags: phpunit-files-external-generic |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-files-external-generic |
|
|
|
|
|
|
|
@ -104,7 +104,6 @@ jobs: |
|
|
|
files: ./coverage/lcov.info |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
|
|
|
|
jsunit: |
|
|
|
|
|
|
|
@ -101,7 +101,7 @@ jobs: |
|
|
|
OBJECT_STORE: azure |
|
|
|
OBJECT_STORE_KEY: nextcloud |
|
|
|
OBJECT_STORE_SECRET: bmV4dGNsb3Vk |
|
|
|
run: composer run test -- --group PRIMARY-azure ${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test -- --group PRIMARY-azure --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -111,7 +111,6 @@ jobs: |
|
|
|
flags: phpunit-azure |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-azure |
|
|
|
|
|
|
|
@ -107,7 +107,7 @@ jobs: |
|
|
|
OBJECT_STORE: s3 |
|
|
|
OBJECT_STORE_KEY: nextcloud |
|
|
|
OBJECT_STORE_SECRET: bWluaW8tc2VjcmV0LWtleS1uZXh0Y2xvdWQ= |
|
|
|
run: composer run test -- --group PRIMARY-s3 ${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test -- --group PRIMARY-s3 --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -117,7 +117,6 @@ jobs: |
|
|
|
flags: phpunit-s3 |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-s3 |
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ jobs: |
|
|
|
env: |
|
|
|
OBJECT_STORE: swift |
|
|
|
OBJECT_STORE_SECRET: veryfast |
|
|
|
run: composer run test -- --group PRIMARY-swift ${{ matrix.coverage && ' --coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test -- --group PRIMARY-swift --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -107,7 +107,6 @@ jobs: |
|
|
|
flags: phpunit-swift |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-swift |
|
|
|
|
|
|
|
@ -120,7 +120,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test:db -- --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.db.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload db code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -130,7 +130,6 @@ jobs: |
|
|
|
flags: phpunit-mariadb |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-mariadb |
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit memcached tests |
|
|
|
run: composer run test -- --group Memcache,Memcached ${{ matrix.coverage && '--coverage-clover ./clover.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test -- --group Memcache,Memcached --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -107,7 +107,6 @@ jobs: |
|
|
|
flags: phpunit-memcached |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-memcached |
|
|
|
|
|
|
|
@ -155,7 +155,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test:db -- --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.db.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload db code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -165,7 +165,6 @@ jobs: |
|
|
|
flags: phpunit-mysql |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-mysql |
|
|
|
|
|
|
|
@ -120,7 +120,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test:db -- --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.db.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload db code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -130,7 +130,6 @@ jobs: |
|
|
|
flags: phpunit-mysql |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-mysql |
|
|
|
|
|
|
|
@ -103,7 +103,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit nodb testsuite |
|
|
|
run: composer run test -- --exclude-group DB,SLOWDB ${{ matrix.coverage && ' --coverage-clover ./clover.nodb.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test -- --exclude-group DB,SLOWDB --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.nodb.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload nodb code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -113,7 +113,6 @@ jobs: |
|
|
|
flags: phpunit-nodb |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-nodb |
|
|
|
|
|
|
|
@ -125,7 +125,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit |
|
|
|
run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test:db -- --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.db.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload db code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -135,7 +135,6 @@ jobs: |
|
|
|
flags: phpunit-oci |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-oci |
|
|
|
|
|
|
|
@ -115,7 +115,7 @@ jobs: |
|
|
|
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 |
|
|
|
|
|
|
|
- name: PHPUnit database tests |
|
|
|
run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test:db -- --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.db.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload db code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -125,7 +125,6 @@ jobs: |
|
|
|
flags: phpunit-postgres |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-postgres |
|
|
|
|
|
|
|
@ -101,7 +101,7 @@ jobs: |
|
|
|
run: ./occ app:list && echo "======= System config =======" && ./occ config:list system |
|
|
|
|
|
|
|
- name: PHPUnit database tests |
|
|
|
run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml --log-junit junit.xml' || '' }} |
|
|
|
run: composer run test:db -- --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.db.xml' || '' }} |
|
|
|
|
|
|
|
- name: Upload db code coverage |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
@ -111,7 +111,6 @@ jobs: |
|
|
|
flags: phpunit-sqlite |
|
|
|
|
|
|
|
- name: Upload test results |
|
|
|
if: ${{ !cancelled() && matrix.coverage }} |
|
|
|
uses: codecov/test-results-action@v1.1.0 |
|
|
|
with: |
|
|
|
flags: phpunit-sqlite |
|
|
|
|