tests.yml 957 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - master
  7. tags:
  8. - "**"
  9. name: "PHPUnit tests"
  10. jobs:
  11. tests:
  12. name: "Tests"
  13. runs-on: ubuntu-latest
  14. strategy:
  15. matrix:
  16. php-binary:
  17. - php7.2
  18. - php7.3
  19. # - php7.4
  20. steps:
  21. - name: "Checkout"
  22. uses: actions/checkout@v1.1.0
  23. - name: "Install dependencies with composer"
  24. run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --prefer-source --no-progress --no-suggest
  25. - name: "Run unit tests with phpunit/phpunit"
  26. run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration phpunit.xml --coverage-clover clover.xml
  27. # - name: "Send code coverage report to Codecov.io"
  28. # env:
  29. # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
  30. # run: bash <(curl -s https://codecov.io/bash)