Skip to content

Update .github/PULL_REQUEST_TEMPLATE.md #46

Update .github/PULL_REQUEST_TEMPLATE.md

Update .github/PULL_REQUEST_TEMPLATE.md #46

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
validation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: [
'8.1'
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo_mysql
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Composer cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Check PHP for syntax errors
run: find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- name: Composer install
run: composer install --prefer-dist --no-interaction --optimize-autoloader
- name: CodeStyle checks
run: composer cs-check
- name: Static analysis
run: composer stan
- name: Codeception tests
run: composer test