1
0

phpunit-32bits.yml 2.1 KB

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