暫無描述

tests.yml 909B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Tests
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. tests:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. fail-fast: true
  10. matrix:
  11. php: [7.2, 7.3, 7.4, 8.0]
  12. dependency-version: [prefer-stable]
  13. name: PHP ${{ matrix.php }} ${{ matrix.dependency-version }}
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v2
  17. - name: Setup PHP
  18. uses: shivammathur/setup-php@v2
  19. with:
  20. php-version: ${{ matrix.php }}
  21. tools: composer
  22. coverage: none
  23. - name: Setup Problem Matchers
  24. run: |
  25. echo "::add-matcher::${{ runner.tool_cache }}/php.json"
  26. echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
  27. - name: Install PHP dependencies
  28. run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-progress --ansi
  29. - name: Run Unit Tests
  30. run: vendor/bin/phpunit --colors=always