Skip to content

Commit 44055ec

Browse files
authored
Merge pull request #108 from Kit/github-action-run-npm-install
GitHub Actions: Run `npm install`
2 parents 3789718 + a503fbe commit 44055ec

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/coding-standards.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ jobs:
107107
working-directory: ${{ env.PLUGIN_DIR }}
108108
run: composer update
109109

110-
# Installs WordPress scripts for CSS Coding Standards.
111-
- name: Run npm install
112-
working-directory: ${{ env.PLUGIN_DIR }}
113-
run: npm install @wordpress/scripts --save-dev
114-
115110
- name: Build PHP Autoloader
116111
working-directory: ${{ env.PLUGIN_DIR }}
117112
run: composer dump-autoload
118113

114+
# Installs WordPress scripts for CSS Coding Standards.
115+
- name: Run npm install
116+
working-directory: ${{ env.PLUGIN_DIR }}
117+
run: npm install
118+
119119
# Run Coding Standards on Tests.
120-
- name: Run Coding Standards on Tests
120+
- name: Run PHP Coding Standards on Tests
121121
working-directory: ${{ env.PLUGIN_DIR }}
122122
if: ${{ matrix.php-versions == '8.1' || matrix.php-versions == '8.2' || matrix.php-versions == '8.3' || matrix.php-versions == '8.4' }}
123123
run: php vendor/bin/phpcs -q --standard=phpcs.tests.xml --report=checkstyle ./tests | cs2pr

0 commit comments

Comments
 (0)