1
0

phpunit-32bits.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: PHPUnit 32bits
  2. on:
  3. pull_request:
  4. paths:
  5. - 'version.php'
  6. - '.github/workflows/phpunit-32bits.yml'
  7. workflow_dispatch:
  8. schedule:
  9. - cron: "15 1 * * 1-6"
  10. permissions:
  11. contents: read
  12. concurrency:
  13. group: phpunit-32bits-${{ github.head_ref || github.run_id }}
  14. cancel-in-progress: true
  15. jobs:
  16. phpunit-32bits:
  17. runs-on: ubuntu-latest
  18. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  19. container: shivammathur/node:latest-i386
  20. strategy:
  21. matrix:
  22. php-versions: ['8.1','8.3']
  23. steps:
  24. - name: Checkout server
  25. uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
  26. with:
  27. submodules: true
  28. - name: Install tools
  29. run: |
  30. sudo apt-get update
  31. sudo apt-get install -y ffmpeg imagemagick libmagickcore-6.q16-3-extra
  32. - name: Set up php ${{ matrix.php-versions }}
  33. uses: shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f #v2.25.5
  34. with:
  35. php-version: ${{ matrix.php-versions }}
  36. extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
  37. coverage: none
  38. ini-file: development
  39. ini-values:
  40. apc.enabled=on, apc.enable_cli=on, disable_functions= # https://github.com/shivammathur/setup-php/discussions/573
  41. env:
  42. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  43. - name: Set up Nextcloud
  44. env:
  45. DB_PORT: 4444
  46. run: |
  47. composer install
  48. mkdir data
  49. ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin
  50. php -f index.php
  51. - name: PHPUnit
  52. run: composer run test -- --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis,RoutingWeirdness