phpunit-32bits.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.0']
  23. steps:
  24. - name: Checkout server
  25. uses: actions/checkout@v3
  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@c5fc0d8281aba02c7fda07d3a70cc5371548067d #v2.25.2
  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. tools: phpunit:9
  38. coverage: none
  39. ini-values:
  40. apc.enabled=on,
  41. apc.enable_cli=on
  42. env:
  43. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  44. - name: Set up Nextcloud
  45. env:
  46. DB_PORT: 4444
  47. run: |
  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. working-directory: tests
  53. run: phpunit --configuration phpunit-autotest.xml --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis,RoutingWeirdness