[App 780] Navigation Sidebar #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: read | |
jobs: | |
PHP-Code-Standards: | |
name: Lint PHP files | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip PHPCS]') || !contains(github.event.head_commit.message, '[skip CI]')" | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: none | |
tools: composer, cs2pr, phpcs | |
env: | |
fail-fast: 'true' | |
- name: Log debug information | |
run: | | |
export PATH=$HOME/.composer/vendor/bin:$PATH | |
php --version | |
phpcs -i | |
composer --version | |
- name: Install dependencies | |
uses: ramsey/composer-install@v3 | |
- name: Add error matcher | |
run: echo "::add-matcher::$(pwd)/.github/checkstyle-problem-matcher.json" | |
- name: Run style check | |
run: | | |
export PATH=$HOME/.composer/vendor/bin:$PATH | |
composer run lint -- --report=checkstyle | |