You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
679 B

2 years ago
  1. name: PHP Composer
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Validate composer.json and composer.lock
  13. run: composer validate --strict
  14. - name: Cache Composer packages
  15. id: composer-cache
  16. uses: actions/cache@v2
  17. with:
  18. path: vendor
  19. key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
  20. restore-keys: |
  21. ${{ runner.os }}-php-
  22. - name: Install dependencies
  23. run: composer install --prefer-dist --no-progress
  24. - name: Run test suite
  25. run: composer run-script test