Merge pull request #193 from myrotvorets/renovate/actions-checkout-4.x #553
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: Code Style Check | |
on: | |
push: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
codestyle: | |
name: Run code style check | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 # 2.26.0 | |
with: | |
php-version: "8.0" | |
coverage: none | |
env: | |
fail-fast: 'true' | |
- name: Install dependencies | |
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # tag=2.2.0 | |
- name: Add error matcher | |
run: echo "::add-matcher::$(pwd)/.github/checkstyle-problem-matcher.json" | |
- name: Run style check | |
run: composer phpcs -- --report=checkstyle |