From 807fb08d5475a335eb524cddb5db41b0f8385939 Mon Sep 17 00:00:00 2001 From: dannc Date: Wed, 4 Oct 2023 11:08:29 +0700 Subject: [PATCH] ci: add lint action --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bad3c35..2f86ddf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,16 @@ jobs: run: composer install - name: Run tests run: composer run pest-coverage -# lint: + lint: + runs-on: ubuntu-22.04 + strategy: + matrix: + php_version: ['80100', '80200'] + container: dannecron/php-for-dev:8.2 + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Init composer.lock and install dependencies + run: composer update + - name: Run phpcs + run: vendor/bin/phpcs --standard=phpcs.xml --report=full --config-set php_version ${{ matrix.php_version }} ./src ./tests