Skip to content

Commit

Permalink
fix: GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lgersman committed Oct 29, 2024
1 parent 3c133f4 commit 98132e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ EXPOSE 8889
EXPOSE 6006

# doesnt work anymore as of 2024-10-29 because of devcontainer.json spec changes
#
#
# # enable persisted bash completion
# # https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
# RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
Expand Down Expand Up @@ -57,7 +57,9 @@ EOF

USER $USERNAME

ENV WP_ENV_HOME=./wp-env-home
# when running in a container, the default WP_ENV_HOME should be used
ENV WP_ENV_HOME=~/.wp-env

ENV PNPM_VERSION=9.12.3
ENV PNPM_NODEJS_VERSION=20.17.0
ENV XDEBUG_MODE=off
Expand Down
26 changes: 0 additions & 26 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,6 @@
// "source=projectname-bashhistory,target=/commandhistory,type=volume"
// ],

// doesnt work anymore as of 2024-10-29
//
// "customizations": {
// "vscode": {
// "extensions": [
// "EditorConfig.EditorConfig",
// "dbaeumer.vscode-eslint",
// "esbenp.prettier-vscode",
// "stylelint.vscode-stylelint",
// "yogensia.searchwpdocs",
// "johnbillion.vscode-wordpress-hooks",
// "bmewburn.vscode-intelephense-client",
// "rexshi.phpdoc-comment-vscode-plugin",
// "VisualStudioExptTeam.vscodeintellicode",
// "johnbillion.vscode-wordpress-hooks",
// "pucelle.vscode-css-navigation",
// "xdebug.php-debug"
// ],
// // Set *default* container specific settings.json values on container create.
// "settings": {
// "terminal.integrated.shell.linux": "/bin/bash",
// "files.eol": "\n"
// }
// }
// },

"portsAttributes": {
"9003": {
"label": "PHP xdebug port"
Expand Down
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
GIT_CLEAN_OPTS='-Xfd --interactive'

# directory to store wp-env data
WP_ENV_HOME=./wp-env-home
# (only set when NOT running inside a dev container)
if [[ "$HOME" == "/home/vscode" ]]; then
WP_ENV_HOME=./wp-env-home
fi

# start wp-env with xdebug enabled
WP_ENV_START_OPTS='--debug --xdebug'
Expand Down

0 comments on commit 98132e6

Please sign in to comment.