Merge pull request #9 from cspray/task/remove-initializer #24
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: 'Unit Tests & Static Analysis' | |
on: | |
push: | |
branches: [ release-1.x, release-2.x ] | |
pull_request: | |
branches: [ release-1.x, release-2.x ] | |
jobs: | |
continuous-integration: | |
runs-on: ubuntu-latest | |
env: | |
XDEBUG_MODE: coverage | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
tools: composer:2 | |
- name: Setup problem matchers for PHP | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Composer Install | |
run: composer install | |
- name: PHPUnit | |
run: ./vendor/bin/phpunit | |
- name: Psalm | |
run: ./vendor/bin/psalm |