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:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: php:8.2-cli
|
||||
|
||||
env:
|
||||
COMPOSER_CACHE_DIR: ~/.cache/composer
|
||||
|
||||
@@ -13,8 +16,10 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Show current working directory
|
||||
run: pwd
|
||||
- name: Install Composer (if not already installed)
|
||||
run: |
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
||||
- name: Display existing composer cache (if runner reused)
|
||||
run: ls -la $COMPOSER_CACHE_DIR || echo "No cache found"
|
||||
|
||||
Reference in New Issue
Block a user