oci.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: PHPUnit
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - master
  7. - stable*
  8. jobs:
  9. phpunit-oci8:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. # do not stop on another job's failure
  13. fail-fast: false
  14. matrix:
  15. php-versions: [ '7.4' ]
  16. databases: [ 'oci' ]
  17. name: php${{ matrix.php-versions }}-${{ matrix.databases }}
  18. services:
  19. oracle:
  20. image: deepdiver/docker-oracle-xe-11g # "wnameless/oracle-xe-11g-r2"
  21. ports:
  22. - "1521:1521"
  23. steps:
  24. - name: Checkout server
  25. uses: actions/checkout@v2
  26. - name: Checkout submodules
  27. shell: bash
  28. run: |
  29. auth_header="$(git config --local --get http.https://github.com/.extraheader)"
  30. git submodule sync --recursive
  31. git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
  32. - name: Set up php ${{ matrix.php-versions }}
  33. uses: shivammathur/setup-php@v2
  34. with:
  35. php-version: ${{ matrix.php-versions }}
  36. extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, oci8
  37. tools: phpunit:8.5.2
  38. coverage: none
  39. - name: Set up Nextcloud
  40. run: |
  41. mkdir data
  42. ./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
  43. php -f index.php
  44. - name: PHPUnit
  45. working-directory: tests
  46. run: phpunit --configuration phpunit-autotest.xml --group DB,SLOWDB