Skip to content

Commit 0ce6e27

Browse files
committed
ci: use php bin/kcode instead of vendor/bin/kcode
Composer bin-linking only creates vendor/bin/ symlinks for packages installed as *dependencies* of a project. Within the devkit repository itself, kariricode/devkit is not its own dependency, so vendor/bin/kcode is never created. Fix: use 'php bin/kcode' directly in all workflow steps. Applies to: ci.yml (quality job) and code-quality.yml (phpstan, cs-fixer jobs).
1 parent 65a71ff commit 0ce6e27

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
run: composer install --no-interaction --prefer-dist --optimize-autoloader
2424

2525
- name: Initialize devkit
26-
run: vendor/bin/kcode init
26+
run: php bin/kcode init
2727

2828
- name: Code style check
29-
run: vendor/bin/kcode cs:fix --check
29+
run: php bin/kcode cs:fix --check
3030

3131
- name: Static analysis
32-
run: vendor/bin/kcode analyse
32+
run: php bin/kcode analyse
3333

3434
- name: Tests
35-
run: vendor/bin/kcode test --coverage
35+
run: php bin/kcode test --coverage
3636

3737
build-phar:
3838
name: PHAR Build Smoke Test

.github/workflows/code-quality.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ jobs:
113113
run: composer install --prefer-dist --no-progress
114114

115115
- name: Initialize devkit config
116-
run: vendor/bin/kcode init
116+
run: php bin/kcode init
117117

118118
- name: Run PHPStan via kcode
119-
run: vendor/bin/kcode analyse
119+
run: php bin/kcode analyse
120120

121121
# ============================================================================
122122
# CODE STYLE (PHP CS Fixer via kcode)
@@ -149,10 +149,10 @@ jobs:
149149
run: composer install --prefer-dist --no-progress
150150

151151
- name: Initialize devkit config
152-
run: vendor/bin/kcode init
152+
run: php bin/kcode init
153153

154154
- name: Check code style via kcode
155-
run: vendor/bin/kcode cs:fix --check
155+
run: php bin/kcode cs:fix --check
156156

157157
# ============================================================================
158158
# QUALITY SUMMARY

0 commit comments

Comments
 (0)