Skip to content
Merged
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
4 changes: 3 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ jobs:
env:
DISCOURSE_URL: ${{ secrets.DISCOURSE_URL }}
DISCOURSE_TOKEN: ${{ secrets.DISCOURSE_TOKEN }}
run: phpunit -c tests/phpunit.integration.xml
DISCOURSE_USER_LOGIN: ${{ secrets.DISCOURSE_USER_LOGIN }}
DISCOURSE_USER_PASSWORD: ${{ secrets.DISCOURSE_USER_PASSWORD }}
run: composer run test:integration
34 changes: 17 additions & 17 deletions .github/workflows/phpunit-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,23 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:unit

- name: Check PHPUnit integration script is defined
id: check_integration
continue-on-error: true
working-directory: apps/${{ env.APP_NAME }}
run: |
composer run --list | grep '^ test:integration ' | wc -l | grep 1

- name: Run Nextcloud
# Only run if phpunit integration config file exists
if: steps.check_integration.outcome == 'success'
run: php -S localhost:8080 &

- name: PHPUnit integration
# Only run if phpunit integration config file exists
if: steps.check_integration.outcome == 'success'
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:integration
#- name: Check PHPUnit integration script is defined
# id: check_integration
# continue-on-error: true
# working-directory: apps/${{ env.APP_NAME }}
# run: |
# composer run --list | grep '^ test:integration ' | wc -l | grep 1

#- name: Run Nextcloud
# # Only run if phpunit integration config file exists
# if: steps.check_integration.outcome == 'success'
# run: php -S localhost:8080 &

#- name: PHPUnit integration
# # Only run if phpunit integration config file exists
# if: steps.check_integration.outcome == 'success'
# working-directory: apps/${{ env.APP_NAME }}
# run: composer run test:integration

- name: Print logs
if: always()
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/phpunit-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,23 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:unit

- name: Check PHPUnit integration script is defined
id: check_integration
continue-on-error: true
working-directory: apps/${{ env.APP_NAME }}
run: |
composer run --list | grep '^ test:integration ' | wc -l | grep 1

- name: Run Nextcloud
# Only run if phpunit integration config file exists
if: steps.check_integration.outcome == 'success'
run: php -S localhost:8080 &

- name: PHPUnit integration
# Only run if phpunit integration config file exists
if: steps.check_integration.outcome == 'success'
working-directory: apps/${{ env.APP_NAME }}
run: composer run test:integration
#- name: Check PHPUnit integration script is defined
# id: check_integration
# continue-on-error: true
# working-directory: apps/${{ env.APP_NAME }}
# run: |
# composer run --list | grep '^ test:integration ' | wc -l | grep 1

#- name: Run Nextcloud
# # Only run if phpunit integration config file exists
# if: steps.check_integration.outcome == 'success'
# run: php -S localhost:8080 &

#- name: PHPUnit integration
# # Only run if phpunit integration config file exists
# if: steps.check_integration.outcome == 'success'
# working-directory: apps/${{ env.APP_NAME }}
# run: composer run test:integration

- name: Print logs
if: always()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
]
},
"require": {
"phpseclib/phpseclib": "^2.0.28",
"phpseclib/phpseclib": "^3",
"bamarni/composer-bin-plugin": "^1.9"
},
"require-dev": {
"nextcloud/ocp": "dev-master",
"nextcloud/coding-standard": "^1.1",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^11"
},
"config": {
"allow-plugins": {
Expand Down
Loading
Loading