From 5bee124965f25623bd03d397c238539317cc4072 Mon Sep 17 00:00:00 2001 From: jekkos Date: Fri, 10 Jan 2025 19:15:38 +0100 Subject: [PATCH] Add php linter (#3708) --- .github/workflows/php-linter.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/php-linter.yml diff --git a/.github/workflows/php-linter.yml b/.github/workflows/php-linter.yml new file mode 100644 index 000000000..a834fd069 --- /dev/null +++ b/.github/workflows/php-linter.yml @@ -0,0 +1,34 @@ +name: PHP Linting + +on: push + +jobs: + phplint: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: PHP Lint 7.4 + uses: dbfx/github-phplint/7.4@master + with: + folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./folder/excluded/*\"" + - name: PHP Lint 8.0 + uses: dbfx/github-phplint/8.0@master + with: + folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./folder/excluded/*\"" + - name: PHP Lint 8.1 + uses: dbfx/github-phplint/8.1@master + with: + folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./folder/excluded/*\"" + - name: PHP Lint 8.2 + uses: dbfx/github-phplint/8.2@master + with: + folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./folder/excluded/*\"" + - name: PHP Lint 8.3 + uses: dbfx/github-phplint/8.3@master + with: + folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./folder/excluded/*\""