ci: change action for GitHub release #3
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 tests | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
tools: composer:v2 | |
coverage: xdebug | |
- name: Install Dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run PHP CodeSniffer | |
run: vendor/bin/phpcs | |
- name: Run PHPStan | |
run: vendor/bin/phpstan analyse | |
- name: Run PHPUnit | |
run: vendor/bin/phpunit |