From e06692e93b1691dcb41033e25096b3e69fc24938 Mon Sep 17 00:00:00 2001 From: wojsmol Date: Sat, 13 Apr 2024 22:53:09 +0200 Subject: [PATCH] =?UTF-8?q?Dodanie=20sprawdzania=20poprawno=C5=9Bci=20kodu?= =?UTF-8?q?=20php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-php-code.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/check-php-code.yml diff --git a/.github/workflows/check-php-code.yml b/.github/workflows/check-php-code.yml new file mode 100644 index 0000000..c998e03 --- /dev/null +++ b/.github/workflows/check-php-code.yml @@ -0,0 +1,27 @@ +name: Check PHP Code + +on: + pull_request: + branches: + - 5.*-dev + push: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + check-php-code: + runs-on: ubuntu-latest + permissions: read-all + + steps: + - name: Checkout Source Code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Check PHP syntax errors + uses: StephaneBour/actions-php-lint@8.2 + with: + dir: '.' \ No newline at end of file