From b7b32cf88572a163e06bb6af2d0468f2095e85c0 Mon Sep 17 00:00:00 2001 From: Sami Ahmed Siddiqui Date: Fri, 16 Aug 2024 13:26:42 +0500 Subject: [PATCH] Create wpcs-php.yml (#88) Signed-off-by: Sami Ahmed Siddiqui --- .github/workflows/wpcs-php.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/wpcs-php.yml diff --git a/.github/workflows/wpcs-php.yml b/.github/workflows/wpcs-php.yml new file mode 100644 index 0000000..9fd6403 --- /dev/null +++ b/.github/workflows/wpcs-php.yml @@ -0,0 +1,19 @@ +name: WordPress Coding Standards (PHP) + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: composer install + + - name: Test WPCS + run: composer lint