Skip to content

docs: plan phase 5C frontend work #126

docs: plan phase 5C frontend work

docs: plan phase 5C frontend work #126

Workflow file for this run

name: CI
on:
push:
branches: [main, feature/**]
pull_request:
branches: [main]
jobs:
test:
name: PHP ${{ matrix.php }} — tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Validate composer.json
run: composer validate --strict
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php }}-
composer-${{ runner.os }}-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPUnit
run: ./vendor/bin/phpunit -c phpunit.xml
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse --memory-limit=2G --no-progress
- name: Run PHPCS
run: ./vendor/bin/phpcs --standard=phpcs.xml