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
903 B

3 years ago
  1. name: Psalm
  2. on:
  3. push:
  4. paths:
  5. - '**.php'
  6. - 'psalm.xml'
  7. jobs:
  8. psalm:
  9. name: psalm
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Setup PHP
  14. uses: shivammathur/setup-php@v2
  15. with:
  16. php-version: '7.4'
  17. extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
  18. coverage: none
  19. - name: Cache composer dependencies
  20. uses: actions/cache@v1
  21. with:
  22. path: vendor
  23. key: composer-${{ hashFiles('composer.lock') }}
  24. - name: Run composer require
  25. run: composer require -n --prefer-dist
  26. - name: Run psalm
  27. run: ./vendor/bin/psalm -c psalm.xml