fix: Install PHP / composer
Some checks failed
WordPress deployment / deploy (push) Failing after 6s
Some checks failed
WordPress deployment / deploy (push) Failing after 6s
This commit is contained in:
@@ -6,6 +6,9 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: php:8.2-cli
|
||||||
|
|
||||||
env:
|
env:
|
||||||
COMPOSER_CACHE_DIR: ~/.cache/composer
|
COMPOSER_CACHE_DIR: ~/.cache/composer
|
||||||
|
|
||||||
@@ -13,8 +16,10 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Show current working directory
|
- name: Install Composer (if not already installed)
|
||||||
run: pwd
|
run: |
|
||||||
|
curl -sS https://getcomposer.org/installer | php
|
||||||
|
mv composer.phar /usr/local/bin/composer
|
||||||
|
|
||||||
- name: Display existing composer cache (if runner reused)
|
- name: Display existing composer cache (if runner reused)
|
||||||
run: ls -la $COMPOSER_CACHE_DIR || echo "No cache found"
|
run: ls -la $COMPOSER_CACHE_DIR || echo "No cache found"
|
||||||
|
|||||||
Reference in New Issue
Block a user