Skip to content

Commit

Permalink
wp-env: try to fix failing PHP Github actions (#51513)
Browse files Browse the repository at this point in the history
* wp-env: try to fix failing php 8.2 github action

* Add git
  • Loading branch information
andrewserong authored Jun 15, 2023
1 parent f05cf6b commit 6c0f4a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/env/lib/init-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function wordpressDockerFileContents( env, config ) {
# Update apt sources for archived versions of Debian.
# stretch (https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html)
RUN touch /etc/apt/sources.list
RUN sed -i 's|deb.debian.org/debian stretch|archive.debian.org/debian stretch|g' /etc/apt/sources.list
RUN sed -i 's|security.debian.org/debian-security stretch|archive.debian.org/debian-security stretch|g' /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
Expand Down Expand Up @@ -167,7 +168,7 @@ RUN adduser -h /home/$HOST_USERNAME -G $( getent group $HOST_GID | cut -d: -f1 )
# Install any dependencies we need in the container.
${ installDependencies( 'cli', env, config ) }
# Switch back to the original user now that we're done.
USER www-data
Expand Down Expand Up @@ -200,6 +201,9 @@ RUN apt-get -qy update
# Install some basic PHP dependencies.
RUN apt-get -qy install $PHPIZE_DEPS && touch /usr/local/etc/php/php.ini
# Install git
RUN apt-get -qy install git
# Set up sudo so they can have root access.
RUN apt-get -qy install sudo
RUN echo "#$HOST_UID ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers`;
Expand Down

1 comment on commit 6c0f4a5

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 6c0f4a5.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5274145071
📝 Reported issues:

Please sign in to comment.