From 82b8af3635c15fd8850225426340da9699b0ed66 Mon Sep 17 00:00:00 2001 From: Razvan Grigore Date: Sat, 2 Mar 2024 15:10:12 +0200 Subject: [PATCH] Add github action for phpcs linting check --- .github/workflows/lint.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 00000000000..09e6b65b882 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,19 @@ +name: Code Quality + +on: [push, pull_request] + +jobs: + phpcs: + runs-on: ubuntu-latest + name: PHP_CodeSniffer + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: cs2pr, phpcs + + - name: Run phpcs + run: phpcs --standard=Yii2 -q --report=checkstyle framework/ | cs2pr \ No newline at end of file