Skip to content

Commit

Permalink
Add PHP and WP-CLI so wp i18n can be run
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 25, 2024
1 parent 1b4ab30 commit 6bdfbe1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ on:
default: 'no'
required: false
type: string
php_version:
description: 'PHP version to use'
default: '7.4'
required: false
type: string
i18n:
description: 'Perform pup i18n steps'
default: 'yes'
Expand Down Expand Up @@ -88,6 +93,25 @@ jobs:
node-version-file: '.nvmrc'
cache: 'npm'

# ------------------------------------------------------------------------------
# Setup PHP.
# ------------------------------------------------------------------------------
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php_version }}
extensions: mbstring, intl
coverage: none

# ------------------------------------------------------------------------------
# Setup WordPress.
# ------------------------------------------------------------------------------
- name: Set up WP-CLI
run: |
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
# ------------------------------------------------------------------------------
# Pup and filename setup.
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 6bdfbe1

Please sign in to comment.