summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-02-12 10:35:17 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-02-12 10:35:17 +0000
commit3dcbd0ef0d16b07dc30b5e27950ce985da1e4197 (patch)
tree8d258b6040b8fd6f3eae1089d9c2c7bd45e51b16 /.github
parentad334626a74d3caa6513db801f5cee96aa6ad719 (diff)
downloadwebtrees-3dcbd0ef0d16b07dc30b5e27950ce985da1e4197.tar.gz
webtrees-3dcbd0ef0d16b07dc30b5e27950ce985da1e4197.tar.bz2
webtrees-3dcbd0ef0d16b07dc30b5e27950ce985da1e4197.zip
CI tools should be exactly the same as local
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/phpcs.yaml8
-rw-r--r--.github/workflows/phpstan.yaml6
2 files changed, 3 insertions, 11 deletions
diff --git a/.github/workflows/phpcs.yaml b/.github/workflows/phpcs.yaml
index 7e44ab7e6e..cf57f062d0 100644
--- a/.github/workflows/phpcs.yaml
+++ b/.github/workflows/phpcs.yaml
@@ -24,10 +24,6 @@ jobs:
- run: composer validate
- - run: composer global require squizlabs/php_codesniffer
+ - run: composer install --no-progress
- - name: PHP
- run: ~/.composer/vendor/bin/phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength --extensions=php index.php app tests
-
- - name: Style sheets
- run: ~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css
+ - run: composer webtrees:phpcs
diff --git a/.github/workflows/phpstan.yaml b/.github/workflows/phpstan.yaml
index 92fba3f743..66c54fef1e 100644
--- a/.github/workflows/phpstan.yaml
+++ b/.github/workflows/phpstan.yaml
@@ -24,10 +24,6 @@ jobs:
- run: composer validate
- - run: composer global config --no-plugins allow-plugins.phpstan/extension-installer true
-
- - run: composer global require phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules phpstan/phpstan-strict-rules phpstan/phpstan-phpunit
-
- run: composer install --no-progress
- - run: ~/.composer/vendor/bin/phpstan analyze --no-progress --level=max app index.php
+ - run: composer webtrees:phpcs