Skip to content

Commit

Permalink
Merge pull request #1088 from skaut/js-i18n
Browse files Browse the repository at this point in the history
Using wp-cli for i18n
  • Loading branch information
marekdedic authored Nov 9, 2023
2 parents 40fc6a1 + 9b7dc1e commit 8a76f1f
Show file tree
Hide file tree
Showing 9 changed files with 1,020 additions and 1,123 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Install gettext"
- name: "Cache Composer dependencies"
uses: actions/cache@v3
with:
path: "~/.composer/cache"
key: composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }}
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-
composer-dependencies-${{ runner.os }}-
- name: "Install Composer dependencies"
run: |
sudo apt-get install gettext
composer install -n --prefer-dist
- name: "Cache NPM dependencies"
uses: actions/cache@v3
Expand Down Expand Up @@ -47,10 +57,6 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Install gettext"
run: |
sudo apt-get install gettext
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"phan/phan": "^5.1",
"skaut/wordpress-stubs": "^2.2.0",
"phpstan/phpstan": "^1.4",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0"
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"wp-cli/i18n-command": "^2.4"
}
}
Loading

0 comments on commit 8a76f1f

Please sign in to comment.