Skip to content

Commit 4c3d07c

Browse files
fix for installing composer
1 parent e4c0429 commit 4c3d07c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,21 @@ jobs:
2525
uses: actions/setup-go@v5
2626
with:
2727
go-version: '1.23'
28-
- name: Install Composer
29-
uses: php-actions/composer@v6
28+
29+
- name: Install PHP and Composer
30+
run: |
31+
if [ "$RUNNER_OS" == "Linux" ]; then
32+
sudo apt-get update
33+
sudo apt-get install -y php php-curl php-mbstring php-xml
34+
curl -sS https://getcomposer.org/installer | php
35+
sudo mv composer.phar /usr/local/bin/composer
36+
elif [ "$RUNNER_OS" == "macOS" ]; then
37+
brew install composer
38+
elif [ "$RUNNER_OS" == "Windows" ]; then
39+
choco install composer -y
40+
fi
41+
composer --version
42+
shell: bash
3043

3144
- name: Install Bower
3245
run: |

0 commit comments

Comments
 (0)