phpTestLinux.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: PHP Tests on Linux
  2. on: [push, pull_request]
  3. jobs:
  4. testLinux:
  5. name: PHP ${{ matrix.php-versions }} DokuWiki ${{ matrix.dokuwiki-branch }}
  6. runs-on: ubuntu-latest
  7. if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
  8. strategy:
  9. matrix:
  10. php-versions: ['7.2', '7.3', '7.4', '8.0']
  11. dokuwiki-branch: [ 'master', 'stable']
  12. exclude:
  13. - dokuwiki-branch: 'stable'
  14. php-versions: '8.0'
  15. fail-fast: false
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v2
  19. - name: Setup PHP
  20. uses: shivammathur/setup-php@v2
  21. with:
  22. php-version: ${{ matrix.php-versions }}
  23. extensions: mbstring, intl, PDO, pdo_sqlite, bz2
  24. - name: Setup problem matchers
  25. run: |
  26. echo ::add-matcher::${{ runner.tool_cache }}/php.json
  27. echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json
  28. - name: Download DokuWiki Test-setup
  29. run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
  30. - name: Run DokuWiki Test-setup
  31. env:
  32. CI_SERVER: 1
  33. DOKUWIKI: ${{ matrix.dokuwiki-branch }}
  34. run: sh travis.sh
  35. - name: Setup PHPUnit
  36. run: |
  37. php _test/fetchphpunit.php
  38. cd _test
  39. - name: Run PHPUnit
  40. run: |
  41. cd _test
  42. php phpunit.phar --verbose --stderr --group plugin_include