Merge pull request #28 from MarcinOrlowski/client-update-6953 #59
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
################################################################################## | |
# | |
# Olza Logistic's Pickup Points API client | |
# | |
# @author Marcin Orlowski <marcin.orlowski (#) develart (.) cz> | |
# @copyright 2022-2023 DevelArt | |
# @license http://www.opensource.org/licenses/mit-license.php MIT | |
# @link https://github.com/develart-projects/pickup-points-api-client/ | |
# | |
################################################################################## | |
# | |
# Runs PHPStan on the project | |
# | |
name: "Static Analysis" | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
- "dev" | |
jobs: | |
check: | |
strategy: | |
# do not stop the workflow if single run failed | |
fail-fast: false | |
matrix: | |
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime | |
php: ["7.4", "8.0", "8.1", "8.2"] | |
runs-on: ubuntu-22.04 | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- name: "Checkout repository..." | |
uses: actions/checkout@v3 | |
# https://github.com/marketplace/actions/composer-php-actions | |
- name: "Installing dependencies..." | |
uses: php-actions/composer@v6 | |
with: | |
version: 2 | |
php_version: "${{ matrix.php }}" | |
dev: yes | |
# https://github.com/marketplace/actions/phpstan-php-actions | |
- name: "Running PHPStan..." | |
uses: php-actions/phpstan@v3 | |
with: | |
configuration: "phpstan.neon.dist" | |
php_version: "${{ matrix.php }}" | |
# memory_limit: 16M |