Skip to content

Commit 6c63585

Browse files
committed
Update Github actions to use commands defined in Composer & package.json
1 parent a93fe0f commit 6c63585

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.github/workflows/css-codestyle.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v6
1818

19-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v6
2020

2121
- run: npm install stylelint stylelint-config-standard stylelint-config-sass-guidelines
2222

2323
- name: Run StyleLint
24-
run: npx stylelint "src/**/*.scss"
24+
run: npm run stylelint

‎.github/workflows/js-codestyle.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v6
1818

19-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v6
2020

21-
- run: npm install semistandard
21+
- run: npm install semistandard snazzy
2222

2323
- name: Run semistandard
24-
run: npx semistandard
24+
run: npm run eslint

‎.github/workflows/php-codestyle.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
with:
2222
php-version: 8.3
2323
extensions: gd,intl,mbstring,sqlite,zip
24-
coverage: disable
24+
coverage: none
2525

2626
- run: composer global require squizlabs/php_codesniffer=* --quiet
2727

28-
- name: PHP
29-
run: ~/.composer/vendor/bin/phpcs -s
28+
- name: PHPCS
29+
run: composer webtrees-theme-rural:phpcs

‎.github/workflows/php-staticanalysis.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121
with:
2222
php-version: 8.3
2323
extensions: gd,intl,mbstring,sqlite,zip
24-
coverage: disable
24+
coverage: none
2525

2626
- run: composer global config allow-plugins.phpstan/extension-installer true
2727

2828
- run: composer global require phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules phpstan/phpstan-strict-rules phpstan/phpstan-phpunit
2929

3030
- run: composer install --no-progress --ignore-platform-reqs
3131

32-
- run: ~/.composer/vendor/bin/phpstan analyze --no-progress --error-format=github
32+
- name: PHPStan
33+
run: composer webtrees-theme-rural:phpstan

0 commit comments

Comments
 (0)