Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 90118d4

Browse files
committed
Revert: Remove composer.json check from entrypoint
It's better to keep production code simple and adapt tests instead. The Docker build test now only verifies the image builds successfully, which is the actual requirement. The action will always run in a context with composer.json in real usage.
1 parent 552de24 commit 90118d4

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/test-action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,3 @@ jobs:
6868
tags: phparkitect/arkitect-github-actions:test
6969
cache-from: type=gha
7070
cache-to: type=gha,mode=max
71-
72-
- name: Test Docker image
73-
run: |
74-
docker run --rm phparkitect/arkitect-github-actions:test --version

entrypoint.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ if [ "${REQUIRE_DEV}" != "true" ]; then
1717
COMPOSER_FLAGS="${COMPOSER_FLAGS} --no-dev"
1818
fi
1919

20-
# Install project dependencies if composer.json exists
21-
if [ -f "composer.json" ]; then
22-
echo "::group::Installing project dependencies"
23-
# shellcheck disable=SC2086
24-
composer install ${COMPOSER_FLAGS}
25-
echo "::endgroup::"
26-
else
27-
echo "::notice::No composer.json found, skipping dependency installation"
28-
fi
20+
# Install project dependencies
21+
echo "::group::Installing project dependencies"
22+
# shellcheck disable=SC2086
23+
composer install ${COMPOSER_FLAGS}
24+
echo "::endgroup::"
2925

3026
# Build PHPArkitect flags
3127
PHPARKITECT_FLAGS=""

0 commit comments

Comments
 (0)