phpunit-32bits.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: PHPUnit
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: "15 1 * * 1-6"
  6. permissions:
  7. contents: read
  8. concurrency:
  9. group: phpunit-32bits-${{ github.head_ref || github.run_id }}
  10. cancel-in-progress: true
  11. jobs:
  12. phpunit-32bits:
  13. runs-on: ubuntu-latest
  14. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  15. container: shivammathur/node:latest-i386
  16. strategy:
  17. matrix:
  18. php-versions: ['8.0']
  19. steps:
  20. - name: Checkout server
  21. uses: actions/checkout@v3
  22. with:
  23. submodules: true
  24. - name: Install tools
  25. run: |
  26. sudo apt-get update
  27. sudo apt-get install -y ffmpeg imagemagick libmagickcore-6.q16-3-extra
  28. - name: Set up php ${{ matrix.php-versions }}
  29. uses: shivammathur/setup-php@9c77701ae57b0c47f6732beebfbdec76e4e5c90a #debian bookworm fix
  30. with:
  31. php-version: ${{ matrix.php-versions }}
  32. extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
  33. tools: phpunit:9
  34. coverage: none
  35. ini-values:
  36. apc.enabled=on,
  37. apc.enable_cli=on
  38. env:
  39. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  40. - name: Set up Nextcloud
  41. env:
  42. DB_PORT: 4444
  43. run: |
  44. mkdir data
  45. ./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
  46. php -f index.php
  47. - name: PHPUnit
  48. working-directory: tests
  49. run: phpunit --configuration phpunit-autotest.xml --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis,RoutingWeirdness