Move Unit tests to GHA for DJ82 #2579
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run PHPStan | |
on: | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
- '[0-9]+.[0-9]+' | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup composer dependencies | |
run: .github/jobs/composer_setup.sh | |
- run: find lib/vendor -name phpstan | |
- name: Show the phpstan version | |
run: lib/vendor/phpstan/phpstan/phpstan --version | |
- uses: php-actions/[email protected] | |
with: | |
configuration: webapp/phpstan.dist.neon | |
path: webapp/src webapp/tests | |
php_extensions: gd intl mysqli pcntl zip | |
autoload_file: lib/vendor/autoload.php | |
version: composer | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
path: /tmp/artifacts |