Skip to content

Commit

Permalink
CI: Do not manually install WP-CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Dec 4, 2023
1 parent 60ce4be commit db8468c
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/lint-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,16 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Install WP-CLI
run: |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mkdir -p bin
mv wp-cli.phar bin/wp
echo "${PWD}/bin" >> $GITHUB_PATH
- name: WP-CLI Info
run: wp cli info
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: latest
coverage: none
tools: wp-cli

- name: Install latest version of i18n-command
run: wp package install wp-cli/i18n-command:dev-main

- name: List packages
run: wp package list

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
with:
Expand Down

0 comments on commit db8468c

Please sign in to comment.