test.yml 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Test
  2. on:
  3. push:
  4. branches: [ '*' ]
  5. pull_request:
  6. branches: [ '*' ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: shivammathur/setup-php@v2
  17. with:
  18. php-version: ${{ matrix.php-versions }}
  19. - name: Cache Composer dependencies
  20. uses: actions/cache@v2
  21. with:
  22. path: /tmp/composer-cache
  23. key: ${{ runner.os }}-php${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
  24. - name: Install dependencies
  25. uses: php-actions/composer@v5
  26. with:
  27. command: install
  28. args: --prefer-dist --no-progress --no-suggest --verbose
  29. php_version: ${{ matrix.php-versions }}
  30. version: 1
  31. - name: Run tests
  32. run: make test