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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: PHPUnit
  2. on: pull_request
  3. permissions:
  4. contents: read
  5. concurrency:
  6. group: phpunit-oci-${{ github.head_ref || github.run_id }}
  7. cancel-in-progress: true
  8. jobs:
  9. phpunit-oci:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. php-versions: [ '7.4', '8.0', '8.1']
  14. services:
  15. oracle:
  16. image: deepdiver/docker-oracle-xe-11g # 'wnameless/oracle-xe-11g-r2'
  17. ports:
  18. - 1521:1521/tcp
  19. steps:
  20. - name: Checkout server
  21. uses: actions/checkout@v3
  22. with:
  23. submodules: true
  24. - name: Set up php ${{ matrix.php-versions }}
  25. uses: shivammathur/setup-php@v2
  26. with:
  27. php-version: ${{ matrix.php-versions }}
  28. extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, oci8, openssl, pdo_sqlite, posix, sqlite, xml, zip
  29. tools: phpunit:9
  30. coverage: none
  31. - name: Set up Nextcloud
  32. run: |
  33. mkdir data
  34. ./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
  35. php -f index.php
  36. - name: PHPUnit
  37. working-directory: tests
  38. run: phpunit --configuration phpunit-autotest.xml --group DB,SLOWDB
  39. summary:
  40. permissions:
  41. contents: none
  42. runs-on: ubuntu-latest
  43. needs: phpunit-oci
  44. if: always()
  45. name: phpunit-oci-summary
  46. steps:
  47. - name: Summary status
  48. run: if ${{ needs.phpunit-oci.result != 'success' }}; then exit 1; fi