Skip to content

Commit e8be557

Browse files
committedJul 19, 2024
try 8
1 parent a984e3b commit e8be557

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
 

‎.github/workflows/tests.yaml

+10-7
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ jobs:
3232
- name: install phpenv
3333
run: |
3434
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer | PHPENV_ROOT=$HOME/.phpenv-root bash
35-
echo 'export PATH="${PHPENV_ROOT}/bin:${PATH}"' >> ~/.bash_profile
36-
FILE="$PHPENV_ROOT/bin/phpenv"
37-
if [ -f "$FILE" ]; then
38-
echo "$FILE exists."
39-
fi
40-
export PATH="${PHPENV_ROOT}/bin:${PATH}"
41-
eval "$($PHPENV_ROOT/bin/phpenv init -)"
35+
mkdir -p $HOME/.local/bin && ln -s $HOME/.phpenv-root/bin/phpenv $HOME/.local/bin/phpenv
36+
eval "$(phpenv init -)"
4237
exec $SHELL -l
38+
39+
40+
# echo 'export PATH="${PHPENV_ROOT}/bin:${PATH}"' >> ~/.bash_profile
41+
# FILE="$PHPENV_ROOT/bin/phpenv"
42+
# if [ -f "$FILE" ]; then
43+
# echo "$FILE exists."
44+
# fi
45+
# export PATH="${PHPENV_ROOT}/bin:${PATH}"
4346

4447
# source ~/.bash_profile
4548
# - name: ls $PHPENV_ROOT

0 commit comments

Comments
 (0)