Files
advancedmegamenu/.gitea/workflows/ci.yml
T
Heat module snapshot cffeb5eed3
CI / PHP lint (8.1) (push) Successful in 55s
CI / PHP lint (8.5) (push) Successful in 48s
CI / Coding standards (push) Successful in 1m7s
Drop PHP 7.4 from CI matrix
Keeps CI aligned with the PHP-CS-Fixer run on PHP 8.5 and the currently supported runtime set.
2026-06-11 19:34:12 +02:00

38 lines
1007 B
YAML

name: CI
on:
push:
pull_request:
jobs:
php-lint:
name: PHP lint (${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.1', '8.5']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Run PHP lint
run: find . -path './vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 php -l
coding-standards:
name: Coding standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
- uses: actions/cache@v4
with:
path: vendor
key: php-8.5-${{ hashFiles('composer.lock') }}
- name: Install dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- name: Run PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no