BA-239 Make it possible to override the version within requests #114
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: CheckStyleAndLint | |
on: | |
pull_request: | |
paths: | |
- "src/**.php" | |
- "example/**.php" | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [7.4, 8.1, 8.2, 8.3] | |
stability: [prefer-stable] | |
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: cs2pr, phplint, phpcs | |
- name: Run phplint | |
run: phplint --no-configuration --no-cache --no-interaction ./src/* ./example/* | |
- name: Run phpcs | |
run: phpcs -q --report=checkstyle --extensions=php ./src/* | cs2pr |