Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX: Allow running smoke tests within Docker runtime #7608

Merged

Conversation

Wirone
Copy link
Member

@Wirone Wirone commented Dec 21, 2023

Debugging tests with XDebug require Docker runtime (through xdebug utility), Smoke tests require Git, so Docker runtime requires Git 🤷‍.

@Wirone Wirone requested a review from keradus December 21, 2023 01:45
@Wirone Wirone self-assigned this Dec 21, 2023
@coveralls
Copy link

coveralls commented Dec 21, 2023

Coverage Status

coverage: 94.795%. remained the same
when pulling 4365b81 on Wirone:git-for-smoke-tests-within-docker
into 4341133 on PHP-CS-Fixer:master.

@@ -26,6 +26,7 @@ RUN if [ ! -z "$DOCKER_GROUP_ID" ] && [ ! getent group "${DOCKER_GROUP_ID}" > /d
&& if [ ! -z "$DOCKER_USER_ID" ] && [ ! -z "$DOCKER_GROUP_ID" ] && [ ! getent passwd "${DOCKER_USER_ID}" > /dev/null ]; \
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \
fi \
&& apk add git \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have it in line 6. is it not enough ? :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's a different build target (sphinx-lint) 🙂.

Debugging tests with XDebug require Docker runtime (through `xdebug` utility), Smoke tests require Git, so Docker runtime requires Git 🤷‍.
@Wirone Wirone force-pushed the git-for-smoke-tests-within-docker branch from ca55df8 to 4365b81 Compare December 21, 2023 13:18
@Wirone Wirone enabled auto-merge (squash) December 21, 2023 13:18
@Wirone Wirone merged commit 34b7d63 into PHP-CS-Fixer:master Dec 21, 2023
25 checks passed
@Wirone Wirone deleted the git-for-smoke-tests-within-docker branch January 9, 2024 22:54
danog pushed a commit to zoonru/PHP-CS-Fixer that referenced this pull request Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants