Skip to content

- post install commands #21

- post install commands

- post install commands #21

Workflow file for this run

name: Test & lint PHP codebase
on:
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened, ready_for_review]
paths:
- '**.php'
- 'composer.json'
- 'composer.lock'
- 'phpunit.xml'
jobs:
test-and-lint-php:
name: Test & lint PHP codebase
timeout-minutes: 10
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache dependencies
uses: actions/[email protected]
with:
path: vendor
key: ${{ runner.os }}-composer-dependencies-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-dependencies
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, intl
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run code style checker
run: composer cs
- name: Run tests
run: composer test