ci.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Test
  2. on:
  3. # Run on all pushes and on all pull requests.
  4. push:
  5. pull_request:
  6. # Allow manually triggering the workflow.
  7. workflow_dispatch:
  8. jobs:
  9. test:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. # Keys:
  13. # - experimental: Whether the build is "allowed to fail".
  14. matrix:
  15. php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
  16. experimental: [false]
  17. include:
  18. # Nightly.
  19. - php: '8.3'
  20. experimental: true
  21. name: "PHP: ${{ matrix.php }}"
  22. continue-on-error: ${{ matrix.experimental }}
  23. steps:
  24. - name: Checkout code
  25. uses: actions/checkout@v3
  26. - name: Install PHP
  27. uses: shivammathur/setup-php@v2
  28. with:
  29. php-version: ${{ matrix.php }}
  30. coverage: none
  31. tools: phive
  32. - name: Install java
  33. uses: actions/setup-java@v3
  34. with:
  35. java-version: 11
  36. distribution: 'zulu'
  37. - name: Install tools
  38. run: ant install-tools
  39. - name: Generate Autoloader
  40. run: ant generate-autoloader
  41. - name: Run unit tests
  42. run: ant test