Skip to content

Commit

Permalink
release: fixes
Browse files Browse the repository at this point in the history
- Add more translatable strings for improved localization
- Update internal dependencies
  • Loading branch information
Soare-Robert-Daniel authored Oct 30, 2024
2 parents 6d505e7 + cb3b9d6 commit 67fee88
Show file tree
Hide file tree
Showing 61 changed files with 7,566 additions and 5,608 deletions.
6 changes: 0 additions & 6 deletions .babelrc.json

This file was deleted.

7 changes: 3 additions & 4 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Browsers that we support

last 1 version
> 1%
maintained node versions
not dead
last 4 Chrome versions
last 4 Safari versions
last 4 Firefox versions
9 changes: 5 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"linebreak-style": [
"error",
"unix"
Expand All @@ -23,7 +21,7 @@
"always"
],
"no-unused-vars": [
"error", {
"warn", {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
Expand All @@ -32,7 +30,10 @@
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-alert": 0,
"no-nested-ternary": 0
"no-nested-ternary": 0,
"prettier/prettier": "off",
"no-shadow": "warn",
"camelcase": "warn"
},
"ignorePatterns": ["**/vendor/**"]
}
30 changes: 5 additions & 25 deletions .github/workflows/build-dev-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
pull_request:
types: [opened, synchronize, ready_for_review]
branches-ignore:
- 'update_dependencies'
- "update_dependencies"
jobs:
dev-zip:
name: Build ZIP and upload to s3
Expand All @@ -19,32 +19,12 @@ jobs:
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
steps:
- name: Check out source files
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/gallium # 16.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Configure Composer cache
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
node-version: lts/hydrogen # 18.x
cache: "yarn"
- name: Install composer deps
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install yarn deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/gallium # 16.x
node-version: lts/hydrogen # 18.x
- name: Build
run: |
yarn install --frozen-lockfile
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@ jobs:
name: E2E Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/gallium # 16.x
node-version: lts/hydrogen # 18.x
cache: "yarn"
- name: Build
run: |
yarn install --frozen-lockfile
composer install --no-dev --prefer-dist --no-progress --no-suggest
yarn run build
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install testing env
run: bash ./bin/e2e-env.sh
- name: Run Cypress tests
Expand Down
39 changes: 8 additions & 31 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PHP Tests
on:
push:
branches-ignore:
- 'master'
- "master"
# Cancel previous workflow run groups that have not completed.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
Expand All @@ -16,30 +16,19 @@ jobs:
- name: Setup PHP version
uses: shivammathur/setup-php@v1
with:
php-version: '7.4'
php-version: "7.4"
extensions: simplexml
tools: composer:v2.1
- name: Checkout source code
uses: actions/checkout@v2
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Setup Composer cache
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
uses: actions/checkout@v4
- name: Install composer
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPCS
run: composer run lint

phpunit:
name: PHPUnit
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:5.7
Expand All @@ -52,25 +41,14 @@ jobs:
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: "7.4"
extensions: simplexml, mysql
tools: phpunit-polyfills
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install WordPress Test Suite
run: |
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }}
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Setup Composer cache
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install composer
run: composer install --prefer-dist --no-progress --no-suggest --no-dev
- name: Run phpunit
Expand All @@ -84,10 +62,10 @@ jobs:
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: "7.4"
extensions: simplexml, mysql
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
Expand All @@ -103,4 +81,3 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest
- name: PHPStan Static Analysis
run: composer phpstan

Loading

0 comments on commit 67fee88

Please sign in to comment.