PHP School Cloud #48
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: PhpSchool.io | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master, online ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [8.2, 8.3] | |
name: PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2, cs2pr | |
- name: Install PHP Dependencies | |
run: composer install --prefer-dist | |
- name: Run phpunit tests | |
run: composer phpunit | |
- name: Run phpcs | |
run: composer cs:ci | |
- name: Run PHPStan | |
run: composer static |