ci: add lint action

This commit is contained in:
2023-10-04 11:08:29 +07:00
parent 682507dd77
commit 807fb08d54

View File

@@ -25,4 +25,16 @@ jobs:
run: composer install run: composer install
- name: Run tests - name: Run tests
run: composer run pest-coverage 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