-
Notifications
You must be signed in to change notification settings - Fork 508
Test against oracle #4589
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
Merged
Merged
Test against oracle #4589
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fb0ee51
Test against oracle
nickvergessen 138221f
Fix help command handling on Oracle
nickvergessen f5f4a87
Can not SELECT * when selecting more fields afterwards on Oracle
nickvergessen 7067907
Do not select multiple "id" columns so oracle doesn't break with LIMIT
nickvergessen 445eb74
Use the select helper everywhere
nickvergessen ea046da
First install the php version then composer deps
nickvergessen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,73 @@ | ||
| name: PHPUnit | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| - stable* | ||
|
|
||
| env: | ||
| APP_NAME: spreed | ||
|
|
||
| jobs: | ||
| oci: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| # do not stop on another job's failure | ||
| fail-fast: false | ||
| matrix: | ||
| php-versions: ['7.4'] | ||
| databases: ['oci'] | ||
| server-versions: ['master'] | ||
|
|
||
| name: php${{ matrix.php-versions }}-${{ matrix.databases }} | ||
|
|
||
| services: | ||
| oracle: | ||
| image: deepdiver/docker-oracle-xe-11g # "wnameless/oracle-xe-11g-r2" | ||
| ports: | ||
| - "1521:1521" | ||
|
|
||
| steps: | ||
| - name: Checkout server | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| repository: nextcloud/server | ||
| ref: ${{ matrix.server-versions }} | ||
|
|
||
| - name: Checkout submodules | ||
| shell: bash | ||
| run: | | ||
| auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
| git submodule sync --recursive | ||
| git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | ||
|
|
||
| - name: Checkout app | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| path: apps/${{ env.APP_NAME }} | ||
|
|
||
| - name: Set up php ${{ matrix.php-versions }} | ||
| uses: "shivammathur/setup-php@v2" | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| extensions: mbstring, iconv, fileinfo, intl, oci8 | ||
| tools: phpunit:8.5.2 | ||
| coverage: none | ||
|
|
||
| - name: Set up PHPUnit | ||
| working-directory: apps/${{ env.APP_NAME }} | ||
| run: composer i | ||
|
|
||
| - name: Set up Nextcloud | ||
| run: | | ||
| mkdir data | ||
| ./occ maintenance:install --verbose --database=oci --database-name=XE --database-host=127.0.0.1 --database-port=1521 --database-user=autotest --database-pass=owncloud --admin-user admin --admin-pass admin | ||
| php -f index.php | ||
| ./occ app:enable --force ${{ env.APP_NAME }} | ||
|
|
||
| - name: PHPUnit | ||
| working-directory: apps/${{ env.APP_NAME }}/tests/php | ||
| run: phpunit -c phpunit.xml |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.