mirror of
https://github.com/yiisoft/yii2.git
synced 2026-02-20 00:32:19 +01:00
44 lines
869 B
YAML
44 lines
869 B
YAML
---
|
|
name: lint
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
on:
|
|
- pull_request
|
|
- push
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
phpcs:
|
|
runs-on: ubuntu-latest
|
|
|
|
name: PHP ${{ matrix.php }}-PHP_CodeSniffer
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: [8.4]
|
|
|
|
steps:
|
|
- name: Monitor action permissions.
|
|
if: runner.os != 'Windows'
|
|
uses: GitHubSecurityLab/actions-permissions/monitor@v1
|
|
|
|
- name: Checkout.
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Setup PHP with Composer.
|
|
uses: ./.github/actions/php-setup
|
|
with:
|
|
composer-command: install
|
|
php-version: ${{ matrix.php }}
|
|
tools: cs2pr
|
|
|
|
- name: Run PHP_CodeSniffer.
|
|
run: vendor/bin/phpcs -q --report=checkstyle framework/ | cs2pr
|