Skip to content

Commit b4bd4ce

Browse files
committed
refactor: clean up whitespace in GitHub Actions workflows
1 parent f0d53a8 commit b4bd4ce

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- name: Validate Release Version
2222
run: |
2323
echo "=== Validating Release Version ==="
24-
24+
2525
chmod +x ./phpvm.sh
26-
26+
2727
# Check version output
2828
VERSION_OUTPUT=$(./phpvm.sh version)
2929
echo "Version output: $VERSION_OUTPUT"
30-
30+
3131
if echo "$VERSION_OUTPUT" | grep -q "phpvm version"; then
3232
echo "✅ Version output format is correct"
3333
else
@@ -38,48 +38,48 @@ jobs:
3838
- name: Test Core Functionality
3939
run: |
4040
echo "=== Testing Core Functionality ==="
41-
41+
4242
./phpvm.sh version
4343
./phpvm.sh help
4444
./phpvm.sh list
4545
./phpvm.sh test
46-
46+
4747
echo "✅ All core commands work"
4848
4949
- name: Performance Check
5050
run: |
5151
echo "=== Performance Check ==="
52-
52+
5353
time ./phpvm.sh version >/dev/null
5454
time ./phpvm.sh help >/dev/null
55-
55+
5656
echo "✅ Performance check completed"
5757
5858
- name: Documentation Check
5959
if: runner.os == 'Linux'
6060
run: |
6161
echo "=== Documentation Check ==="
62-
62+
6363
# Check that README contains key commands
6464
if grep -q "phpvm version" README.MD; then
6565
echo "✅ README contains version command documentation"
6666
else
6767
echo "⚠️ README might be missing version command documentation"
6868
fi
69-
69+
7070
if grep -q "phpvm install" README.MD; then
7171
echo "✅ README contains install command documentation"
7272
else
7373
echo "❌ README missing install command documentation"
7474
exit 1
7575
fi
76-
76+
7777
# Check changelog exists
7878
if [ -f CHANGELOG.md ]; then
7979
echo "✅ Changelog file exists"
8080
else
8181
echo "❌ Changelog file missing"
8282
exit 1
8383
fi
84-
84+
8585
echo "✅ Documentation check completed"

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
echo "=== Testing Version Commands ==="
7575
./phpvm.sh version
7676
echo ""
77-
./phpvm.sh --version
77+
./phpvm.sh --version
7878
echo ""
7979
./phpvm.sh -v
8080
echo "✅ All version commands work"
@@ -98,23 +98,23 @@ jobs:
9898
- name: Test Error Handling
9999
run: |
100100
echo "=== Testing Error Handling ==="
101-
101+
102102
# Test invalid command
103103
if ./phpvm.sh invalid_command 2>/dev/null; then
104104
echo "❌ Should have failed on invalid command"
105105
exit 1
106106
else
107107
echo "✅ Correctly handles invalid commands"
108108
fi
109-
109+
110110
# Test missing version parameter
111111
if ./phpvm.sh use 2>/dev/null; then
112112
echo "❌ Should have failed on missing version"
113113
exit 1
114114
else
115115
echo "✅ Correctly handles missing version parameter"
116116
fi
117-
117+
118118
echo "✅ Error handling tests completed"
119119
120120
# Test .phpvmrc functionality
@@ -123,12 +123,12 @@ jobs:
123123
echo "=== Testing .phpvmrc Auto-Switch ==="
124124
mkdir -p test_project
125125
echo "8.3" > test_project/.phpvmrc
126-
126+
127127
cd test_project
128128
if [[ "${{ runner.os }}" == "Linux" ]]; then
129129
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" 2>/dev/null || true
130130
fi
131-
131+
132132
../phpvm.sh auto || echo "Auto-switch attempted"
133133
cd ..
134134
echo "✅ Auto-switch test completed"

.github/workflows/use.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ jobs:
2929
run: |
3030
chmod +x phpvm.sh
3131
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
32-
32+
3333
echo "=== Testing PHP Installation ==="
3434
./phpvm.sh install 8.3 || echo "PHP 8.3 installation attempted"
3535
3636
- name: Test PHP Version Switching
3737
run: |
3838
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
39-
39+
4040
echo "=== Testing Version Switching ==="
4141
./phpvm.sh use 8.3 || echo "Switch to 8.3 attempted"
4242
./phpvm.sh list
43-
43+
4444
echo "=== Testing System Switch ==="
4545
./phpvm.sh system || echo "System switch attempted"
4646
4747
- name: Test Project-based Auto-Switch
4848
run: |
4949
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
50-
50+
5151
echo "=== Testing Project Auto-Switch ==="
5252
mkdir -p test_project
5353
echo "8.3" > test_project/.phpvmrc
@@ -58,10 +58,10 @@ jobs:
5858
- name: Verify PHP Functionality
5959
run: |
6060
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
61-
61+
6262
echo "=== Verifying PHP Functionality ==="
6363
php -v 2>/dev/null || echo "PHP not currently active (expected in test environment)"
64-
64+
6565
echo "=== Final Status ==="
6666
./phpvm.sh list
6767
@@ -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"

0 commit comments

Comments
 (0)