chore(deps): update dependency phpstan/phpstan to v2 (#52) #102
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
#test: | |
# name: PHP ${{ matrix.php }} ${{ matrix.composer-flags }}Unit Test | |
# runs-on: ubuntu-latest | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# php: ["8.1", "8.2", "8.3"] | |
# composer-flags: [""] | |
# include: | |
# - php: "8.3" | |
# composer-flags: "--prefer-lowest " | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# | |
# - name: Setup PHP | |
# uses: shivammathur/setup-php@v2 | |
# with: | |
# php-version: ${{ matrix.php }} | |
# | |
# - name: Install Dependencies | |
# uses: nick-invision/retry@v2 | |
# with: | |
# timeout_minutes: 10 | |
# max_attempts: 3 | |
# command: composer update ${{ matrix.composer-flags }} | |
# | |
# - name: Run Script | |
# run: vendor/bin/phpunit | |
style: | |
name: PHP Style Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
- name: Install Dependencies | |
uses: nick-invision/retry@v3 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: composer install | |
- name: Run Script | |
run: vendor/bin/phpcs . --standard=phpcs.xml.dist -nps | |
staticanalysis: | |
name: PHPStan Static Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Run Script | |
run: | | |
composer install | |
composer global require phpstan/phpstan | |
~/.composer/vendor/bin/phpstan analyse |