-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christoph Wurst <[email protected]>
- Loading branch information
1 parent
28d6109
commit b2d3c89
Showing
27 changed files
with
109 additions
and
56 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 |
---|---|---|
|
@@ -12,16 +12,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [7.4] | ||
php-versions: ['8.0'] | ||
nextcloud-versions: ['stable22', 'stable23'] | ||
include: | ||
- php-versions: 7.4 | ||
nextcloud-versions: stable24 | ||
- php-versions: 8.0 | ||
nextcloud-versions: stable24 | ||
- php-versions: 7.4 | ||
nextcloud-versions: master | ||
- php-versions: 8.0 | ||
- php-versions: 8.1 | ||
nextcloud-versions: master | ||
name: Nextcloud ${{ matrix.nextcloud-versions }} php${{ matrix.php-versions }} unit tests | ||
steps: | ||
|
@@ -49,11 +45,18 @@ jobs: | |
- name: Run tests | ||
working-directory: nextcloud/apps/mail | ||
run: composer run test:unit | ||
if: ${{ matrix.php-versions == '8.0' }} | ||
env: | ||
XDEBUG_MODE: coverage | ||
- name: Run tests | ||
working-directory: nextcloud/apps/mail | ||
run: composer run test:unit | ||
if: ${{ matrix.php-versions != '8.0' }} | ||
env: | ||
XDEBUG_MODE: off | ||
- name: Report coverage | ||
uses: codecov/[email protected] | ||
if: ${{ always() && matrix.nextcloud-versions == 'master' }} | ||
if: ${{ always() && matrix.php-versions == '8.0' }} | ||
with: | ||
file: ./nextcloud/apps/mail/tests/clover.unit.xml | ||
flags: unittests | ||
|
@@ -63,9 +66,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: [7.4, 8.0] | ||
php-versions: ['8.0'] | ||
nextcloud-versions: ['master'] | ||
db: ['sqlite', 'mysql', 'pgsql'] | ||
include: | ||
- php-versions: 7.4 | ||
nextcloud-versions: stable22 | ||
db: 'mysql' | ||
- php-versions: 8.0 | ||
nextcloud-versions: stable23 | ||
db: 'mysql' | ||
- php-versions: 8.1 | ||
nextcloud-versions: stable24 | ||
db: 'pgsql' | ||
name: php${{ matrix.php-versions }}-${{ matrix.db }} integration tests | ||
services: | ||
mail-service: | ||
|
@@ -138,12 +151,16 @@ jobs: | |
echo "SET GLOBAL log_output = 'table';" | mysql -h 127.0.0.1 -u root -pmy-secret-pw | ||
- name: Run tests | ||
working-directory: nextcloud/apps/mail | ||
run: | | ||
ss -tunlp | ||
true | openssl s_client -crlf -connect 127.0.0.1:993 | ||
composer run test:integration | ||
if: ${{ matrix.db == 'mysql' }} | ||
run: composer run test:integration | ||
env: | ||
XDEBUG_MODE: coverage | ||
- name: Run tests | ||
working-directory: nextcloud/apps/mail | ||
if: ${{ matrix.db != 'mysql' }} | ||
run: composer run test:integration | ||
env: | ||
XDEBUG_MODE: off | ||
- name: Read slow queries | ||
if: ${{ always() }} | ||
run: echo "SELECT * FROM mysql.slow_log WHERE sql_text LIKE '%oc_mail%' AND sql_text NOT LIKE '%information_schema%'" | mysql -h 127.0.0.1 -u root -pmy-secret-pw | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.