Skip to content

Commit 6cfc70a

Browse files
author
Soare Robert-Daniel
committed
Merge branch 'development' into bugfix/pro/338
2 parents ff37d8b + b102ac7 commit 6cfc70a

172 files changed

Lines changed: 37606 additions & 32045 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.distignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ phpstan-baseline.neon
2828
.gitkeep
2929
.wordpress-org
3030
AGENTS.md
31+
phpcs.baseline.xml
32+
.eslintrc.json
33+
.prettierignore

.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": ["plugin:@wordpress/eslint-plugin/recommended"],
3+
"globals": {
4+
"jQuery": "readonly",
5+
"$": "readonly"
6+
},
7+
"rules": {
8+
"camelcase": "off"
9+
},
10+
"ignorePatterns": ["**/*.min.js", "**/*.bundle.js", "js/inputmask/**", "js/sweetalert/**", "tests/e2e/**", "backend/assets/**"]
11+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Copilot Setup Steps"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
12+
jobs:
13+
copilot-setup-steps:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
18+
# You can define any steps you want, and they will run before the agent starts.
19+
steps:
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-node@v6
22+
with:
23+
node-version: "20"
24+
cache: "npm"
25+
- name: Install Agent Browser
26+
run: |
27+
npm install -g agent-browser
28+
agent-browser install
29+
- name: Install NPM deps
30+
run: |
31+
npm ci
32+
npm install -g playwright-cli
33+
npx playwright install --with-deps chromium
34+
- name: Install composer deps
35+
run: composer install --no-dev
36+
- name: Install environment
37+
run: |
38+
npm run wp-env start

.github/workflows/create-build-zip.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ jobs:
1818
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
1919
steps:
2020
- name: Check out source files
21-
uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
21+
uses: actions/checkout@master
22+
- uses: actions/setup-node@v6
2323
with:
24-
node-version: "18"
25-
cache: "yarn"
24+
node-version: "20"
25+
cache: "npm"
2626
- name: Install composer deps
2727
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
28-
- name: Install yarn deps
29-
run: yarn install --frozen-lockfile
28+
- name: Install npm deps
29+
run: npm ci
3030
- name: Build files
31-
run: yarn run build
31+
run: npm run build
3232
- name: Bump the plugin version
3333
run: |
3434
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
3535
COMMIT_HASH=$(git rev-parse --short HEAD)
3636
DEV_VERSION="${CURRENT_VERSION}-dev.${COMMIT_HASH}"
3737
npm run grunt version::${DEV_VERSION}
3838
- name: Create zip
39-
run: yarn run dist
39+
run: npm run dist
4040
- name: Retrieve branch name
4141
id: retrieve-branch-name
4242
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"

.github/workflows/create-tag.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ jobs:
1010
if: "! contains(github.event.head_commit.message, '[skip ci]')"
1111
strategy:
1212
matrix:
13-
node-version: [18.x]
13+
node-version: [20.x]
1414
steps:
1515
- uses: actions/checkout@master
1616
with:
1717
persist-credentials: false
1818
- name: Build files using ${{ matrix.node-version }}
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: ${{ matrix.node-version }}
22-
cache: "yarn"
22+
cache: "npm"
2323
- name: Release new version
2424
id: release
2525
run: |
26-
yarn install --frozen-lockfile
26+
npm ci
2727
composer install --prefer-dist --no-progress --no-suggest
28-
yarn run build
29-
yarn run release
28+
npm run build
29+
npm run release
3030
env:
3131
CI: true
3232
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}

.github/workflows/deploy-s3-store.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@master
13-
- name: Setup node 18
14-
uses: actions/setup-node@v4
13+
- name: Setup node 20
14+
uses: actions/setup-node@v6
1515
with:
16-
node-version: 18.x
17-
cache: "yarn"
16+
node-version: 20.x
17+
cache: "npm"
1818
- name: Build & create dist/artifact
1919
run: |
20-
yarn install --frozen-lockfile
20+
npm ci
2121
composer install --no-dev --prefer-dist --no-progress --no-suggest
22-
yarn run build
23-
yarn run dist
22+
npm run build
23+
npm run dist
2424
- name: Upload Latest Version to S3
2525
uses: jakejarvis/s3-sync-action@master
2626
with:

.github/workflows/deploy-svn.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
- uses: actions/checkout@master
1212
- name: Build
1313
run: |
14-
yarn install --frozen-lockfile
15-
yarn run build
14+
npm ci
15+
npm run build
1616
composer install --no-dev --prefer-dist --no-progress --no-suggest
1717
- name: WordPress Plugin Deploy
1818
uses: 10up/action-wordpress-plugin-deploy@master
1919
env:
2020
SVN_PASSWORD: ${{ secrets.SVN_THEMEISLE_PASSWORD }}
21-
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
21+
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}

.github/workflows/e2e.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,21 @@ jobs:
1414
fail-fast: false
1515
runs-on: ubuntu-22.04
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v4
17+
- uses: actions/checkout@master
18+
- uses: actions/setup-node@v6
1919
with:
20-
node-version: "18"
21-
cache: "yarn"
20+
node-version: "20"
21+
cache: "npm"
2222
- name: Install NPM deps
2323
run: |
24-
yarn install --frozen-lockfile
24+
npm ci
2525
npm install -g playwright-cli
2626
npx playwright install --with-deps chromium
2727
- name: Install composer deps
2828
run: composer install --no-dev
2929
- name: Install environment
3030
run: |
3131
npm run wp-env start
32-
- name: Prepare Database
33-
run: bash ./bin/e2e-after-setup.sh
3432
- name: Run the tests
3533
run: |
3634
npm run test:e2e

.github/workflows/sync-branches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Sync branches
22
on:
33
push:
44
branches:
5-
- 'master'
5+
- "master"
66
jobs:
77
sync-branch:
88
runs-on: ubuntu-latest
@@ -19,4 +19,4 @@ jobs:
1919
type: now
2020
from_branch: master
2121
target_branch: development
22-
github_token: ${{ secrets.BOT_TOKEN }}
22+
github_token: ${{ secrets.BOT_TOKEN }}

.github/workflows/sync-wporg-assets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
branches:
66
- master
77
paths:
8-
- 'readme.txt'
9-
- '.wordpress-org/**'
8+
- "readme.txt"
9+
- ".wordpress-org/**"
1010
jobs:
1111
run:
1212
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)