Skip to content

Commit

Permalink
Add locale input
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Feb 13, 2024
1 parent 832c4bc commit f3687a2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ on:
type: 'boolean'
default: false
required: false
locale:
description: 'Locale to use'
type: 'string'
default: 'en_US'
required: false

jobs:
benchmarks:
Expand Down Expand Up @@ -87,6 +92,18 @@ jobs:
env:
LOCAL_PHP_MEMCACHED: ${{ inputs.memcached }}

- name: Install additional languages
run: |
(cd old && wp-env run tests-cli wp language core install ${{ inputs.locale }})
(cd old && wp-env run tests-cli wp language plugin install ${{ inputs.locale }}) --all
(cd old && wp-env run tests-cli wp language theme install ${{ inputs.locale }}) --all
(cd old && wp-env run tests-cli wp site switch-language ${{ inputs.locale }})
(cd new && wp-env run tests-cli wp language core install ${{ inputs.locale }})
(cd new && wp-env run tests-cli wp language plugin install ${{ inputs.locale }}) --all
(cd new && wp-env run tests-cli wp language theme install ${{ inputs.locale }}) --all
(cd new && wp-env run tests-cli wp site switch-language ${{ inputs.locale }})
if: ${{ inputs.locale != 'en_US' }}

- name: Update permalink structure
run: |
(cd old && wp-env run tests-cli wp rewrite structure '/%postname%/' -- --hard)
Expand Down

0 comments on commit f3687a2

Please sign in to comment.