Skip to content

Commit

Permalink
github wf: fix "check-translation" job
Browse files Browse the repository at this point in the history
- set working-dir for composer
- utils/check_translation.php: fix path to vendor/autoload.php
- utils/composer.json: add missing nikic/php-parser
  • Loading branch information
tenzap committed Dec 12, 2024
1 parent 8eee516 commit dd7856f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeigniter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer update
composer install --no-progress --prefer-dist --optimize-autoloader
composer update --working-dir=utils
composer install --working-dir=utils --no-progress --prefer-dist --optimize-autoloader
- id: translation
name: Check translations
run: |
Expand Down
2 changes: 1 addition & 1 deletion utils/check_translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

// The script needs PhpParser to parse kalkun's PHP code
include_once 'vendor/autoload.php';
include_once realpath(__DIR__).'/vendor/autoload.php';

use PhpParser\Error;
use PhpParser\ParserFactory;
Expand Down
1 change: 1 addition & 0 deletions utils/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require-dev": {
"nikic/php-parser": "4.*",
"friendsofphp/php-cs-fixer": "3.3.*",
"ise/php-codingstandards-codeigniter": "^1.0",
"squizlabs/php_codesniffer": "3.*"
Expand Down

0 comments on commit dd7856f

Please sign in to comment.