Skip to content

Commit 614bdeb

Browse files
committed
refactor: clean up whitespace and improve installation test scripts in GitHub Actions workflows
1 parent bbc7f89 commit 614bdeb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/use.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ jobs:
7777
- name: Test cURL Installation
7878
run: |
7979
echo "=== Testing cURL Installation Method ==="
80-
80+
8181
# Create temporary directory for testing
8282
TEST_HOME=$(mktemp -d)
8383
export HOME="$TEST_HOME"
8484
export PHPVM_DIR="$TEST_HOME/.phpvm"
85-
85+
8686
# Test installation
8787
curl -o- https://raw.githubusercontent.com/Thavarshan/phpvm/main/install.sh | bash
88-
88+
8989
# Verify installation
9090
if [ -f "$PHPVM_DIR/phpvm.sh" ]; then
9191
echo "✅ cURL installation successful"
@@ -99,15 +99,15 @@ jobs:
9999
if: runner.os == 'Linux'
100100
run: |
101101
echo "=== Testing wget Installation Method ==="
102-
102+
103103
# Create temporary directory for testing
104104
TEST_HOME=$(mktemp -d)
105105
export HOME="$TEST_HOME"
106106
export PHPVM_DIR="$TEST_HOME/.phpvm"
107-
107+
108108
# Test installation
109109
wget -qO- https://raw.githubusercontent.com/Thavarshan/phpvm/main/install.sh | bash
110-
110+
111111
# Verify installation
112112
if [ -f "$PHPVM_DIR/phpvm.sh" ]; then
113113
echo "✅ wget installation successful"
@@ -144,7 +144,7 @@ jobs:
144144
if [[ "${{ runner.os }}" == "Linux" ]]; then
145145
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
146146
fi
147-
147+
148148
echo "=== Testing PHP Installation ==="
149149
./phpvm.sh install 8.3 || echo "PHP 8.3 installation attempted"
150150
@@ -153,7 +153,7 @@ jobs:
153153
if [[ "${{ runner.os }}" == "Linux" ]]; then
154154
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
155155
fi
156-
156+
157157
echo "=== Testing Version Operations ==="
158158
./phpvm.sh use 8.3 || echo "Switch to 8.3 attempted"
159159
./phpvm.sh list
@@ -164,7 +164,7 @@ jobs:
164164
if [[ "${{ runner.os }}" == "Linux" ]]; then
165165
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
166166
fi
167-
167+
168168
echo "=== Testing Project Auto-Switch ==="
169169
mkdir -p test_project
170170
echo "8.3" > test_project/.phpvmrc
@@ -177,7 +177,7 @@ jobs:
177177
if [[ "${{ runner.os }}" == "Linux" ]]; then
178178
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
179179
fi
180-
180+
181181
echo "=== Final Verification ==="
182182
php -v 2>/dev/null || echo "PHP not currently active (expected in test environment)"
183-
./phpvm.sh list
183+
./phpvm.sh list

0 commit comments

Comments
 (0)