You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

oci.yml 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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-20.04
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. php-versions: [ '7.3', '7.4', '8.0' ]
  15. databases: [ 'oci' ]
  16. name: php${{ matrix.php-versions }}-${{ matrix.databases }}
  17. services:
  18. oracle:
  19. image: deepdiver/docker-oracle-xe-11g # "wnameless/oracle-xe-11g-r2"
  20. ports:
  21. - "1521:1521"
  22. steps:
  23. - name: Checkout server
  24. uses: actions/checkout@v2
  25. - name: Checkout submodules
  26. shell: bash
  27. run: |
  28. auth_header="$(git config --local --get http.https://github.com/.extraheader)"
  29. git submodule sync --recursive
  30. git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
  31. - name: Set up php ${{ matrix.php-versions }}
  32. uses: shivammathur/setup-php@v2
  33. with:
  34. php-version: ${{ matrix.php-versions }}
  35. extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,oci8,openssl,pdo_sqlite,posix,sqlite,xml,zip
  36. tools: phpunit:9
  37. coverage: none
  38. - name: Set up Nextcloud
  39. run: |
  40. mkdir data
  41. ./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
  42. php -f index.php
  43. - name: PHPUnit
  44. working-directory: tests
  45. run: phpunit --configuration phpunit-autotest.xml --group DB,SLOWDB