Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b20433e
dev: update phpstan
Mar 25, 2026
f5fd1f8
dev: upgrade PHP linting
Mar 25, 2026
2be811b
dev: format PHP files
Mar 25, 2026
a8739f0
dev: update packages & remove yarn
Mar 25, 2026
61c7985
dev: upgrade js dev packages
Mar 25, 2026
76fae4f
dev: format js files
Mar 25, 2026
8c54b69
dev: ignore minified files
Mar 25, 2026
5a22f12
dev: wp env
Mar 26, 2026
6db0659
dev: add docs and tweaks
Mar 30, 2026
09e31aa
dev: extend docs
Mar 30, 2026
008d350
dev: clean up docs
Mar 30, 2026
4d8c184
dev: fix e2e
Mar 31, 2026
731a2ca
dev: add E2E test
Mar 31, 2026
b810a35
dev: add E2E tests
Mar 31, 2026
b4b484c
dev: phpcs & phpstan
Mar 31, 2026
bb41d96
dev: CI
Mar 31, 2026
c485d7e
dev: CI
Mar 31, 2026
9cc78ab
dev: expands unit tests
Mar 31, 2026
26422e0
dev: expands unit tests
Mar 31, 2026
d777e1d
dev: reset
Apr 1, 2026
8575c20
dev: expand unit tests
Apr 1, 2026
d1f44d0
dev: use E2E fixtures
Apr 1, 2026
46d250c
dev: extend tests
Apr 1, 2026
760444c
dev: extend tests
Apr 1, 2026
a3857be
dev: wp env
Apr 1, 2026
efb3f18
dev: phpstan
Apr 1, 2026
e064d0b
chore: code review
Apr 1, 2026
da2adda
dev: add special bootstrap plugin for e2e fixtures
Apr 2, 2026
fb82089
dev: extend e2e tests
Apr 2, 2026
f29f108
Merge branch 'development' into dev/format
Apr 3, 2026
4fc195f
dev: add more e2e tests based on the merging
Apr 3, 2026
45d2eb4
dev: add a fixture for license toggle
Apr 3, 2026
1ff6f27
dev: clean up
Apr 3, 2026
39bffb1
dev: clean up
Apr 6, 2026
fd75028
dev: clean up
Apr 6, 2026
1578db3
Initial plan
Copilot Apr 6, 2026
d2fa7d1
Guard remove_cart_item() against null cart and missing ppom_cart_key …
Copilot Apr 6, 2026
0be3bbf
Improve null-cart tests: add ppom_cart_key to null-cart test, add spy…
Copilot Apr 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ phpstan-baseline.neon
.gitkeep
.wordpress-org
AGENTS.md
phpcs.baseline.xml
.eslintrc.json
.prettierignore
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["plugin:@wordpress/eslint-plugin/recommended"],
"globals": {
"jQuery": "readonly",
"$": "readonly"
},
"rules": {
"camelcase": "off"
},
"ignorePatterns": ["**/*.min.js", "**/*.bundle.js", "js/inputmask/**", "js/sweetalert/**", "tests/e2e/**", "backend/assets/**"]
}
38 changes: 38 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Copilot Setup Steps"

on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml

jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read

# You can define any steps you want, and they will run before the agent starts.
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
- name: Install Agent Browser
run: |
npm install -g agent-browser
agent-browser install
- name: Install NPM deps
run: |
npm ci
npm install -g playwright-cli
npx playwright install --with-deps chromium
- name: Install composer deps
run: composer install --no-dev
- name: Install environment
run: |
npm run wp-env start
16 changes: 8 additions & 8 deletions .github/workflows/create-build-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ jobs:
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
steps:
- name: Check out source files
uses: actions/checkout@v4
- uses: actions/setup-node@v4
uses: actions/checkout@master
- uses: actions/setup-node@v6
with:
node-version: "18"
cache: "yarn"
node-version: "20"
cache: "npm"
- name: Install composer deps
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install yarn deps
run: yarn install --frozen-lockfile
- name: Install npm deps
run: npm ci
- name: Build files
run: yarn run build
run: npm run build
- name: Bump the plugin version
run: |
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
COMMIT_HASH=$(git rev-parse --short HEAD)
DEV_VERSION="${CURRENT_VERSION}-dev.${COMMIT_HASH}"
npm run grunt version::${DEV_VERSION}
- name: Create zip
run: yarn run dist
run: npm run dist
- name: Retrieve branch name
id: retrieve-branch-name
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
if: "! contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
- name: Build files using ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
cache: "npm"
- name: Release new version
id: release
run: |
yarn install --frozen-lockfile
npm ci
composer install --prefer-dist --no-progress --no-suggest
yarn run build
yarn run release
npm run build
npm run release
env:
CI: true
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy-s3-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup node 18
uses: actions/setup-node@v4
- name: Setup node 20
uses: actions/setup-node@v6
with:
node-version: 18.x
cache: "yarn"
node-version: 20.x
cache: "npm"
- name: Build & create dist/artifact
run: |
yarn install --frozen-lockfile
npm ci
composer install --no-dev --prefer-dist --no-progress --no-suggest
yarn run build
yarn run dist
npm run build
npm run dist
- name: Upload Latest Version to S3
uses: jakejarvis/s3-sync-action@master
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-svn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
- uses: actions/checkout@master
- name: Build
run: |
yarn install --frozen-lockfile
yarn run build
npm ci
npm run build
composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_THEMEISLE_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
12 changes: 5 additions & 7 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@ jobs:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@master
- uses: actions/setup-node@v6
with:
node-version: "18"
cache: "yarn"
node-version: "20"
cache: "npm"
- name: Install NPM deps
run: |
yarn install --frozen-lockfile
npm ci
npm install -g playwright-cli
npx playwright install --with-deps chromium
- name: Install composer deps
run: composer install --no-dev
- name: Install environment
run: |
npm run wp-env start
- name: Prepare Database
run: bash ./bin/e2e-after-setup.sh
- name: Run the tests
run: |
npm run test:e2e
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync branches
on:
push:
branches:
- 'master'
- "master"
jobs:
sync-branch:
runs-on: ubuntu-latest
Expand All @@ -19,4 +19,4 @@ jobs:
type: now
from_branch: master
target_branch: development
github_token: ${{ secrets.BOT_TOKEN }}
github_token: ${{ secrets.BOT_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/sync-wporg-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- master
paths:
- 'readme.txt'
- '.wordpress-org/**'
- "readme.txt"
- ".wordpress-org/**"
jobs:
run:
runs-on: ubuntu-22.04
Expand Down
30 changes: 22 additions & 8 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ jobs:
name: Phpunit
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@master
- uses: actions/setup-node@v6
with:
node-version: "18"
cache: "yarn"
node-version: "20"
cache: "npm"
- name: Install NPM deps
run: |
yarn install --frozen-lockfile
npm ci
- name: Install composer deps
run: composer install
- name: Install environment
run: |
npm run wp-env start
- name: Prepare Database
run: bash ./bin/e2e-after-setup.sh
- name: Run the tests
run: |
npm run test:unit:php
Expand All @@ -40,9 +38,25 @@ jobs:
php-version: "7.4"
extensions: simplexml
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@master
- name: Install composer
run: |
composer install --no-progress
- name: Run phpstan
run: composer run phpstan
phpcs:
name: PHPCS
runs-on: ubuntu-latest
steps:
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: simplexml
- name: Checkout source code
uses: actions/checkout@master
- name: Install composer
run: |
composer install --no-progress
- name: Run linter for PHP
run: composer run lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ vendor
languages/woocommerce-product-addon.pot
*.log
artifacts
.phpunit.result.cache
.phpunit.result.cache
tests/e2e/fixtures/generated/
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/*.min.js
**/*.bundle.js
js/inputmask/**
js/select2.js
js/sweetalert/**
backend/assets/**
17 changes: 11 additions & 6 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"plugins": [
"https://downloads.wordpress.org/plugin/woocommerce.9.3.3.zip",
"."
],
"phpVersion": "8.1"
}
"$schema": "https://schemas.wp.org/trunk/wp-env.json",
"plugins": [
"https://downloads.wordpress.org/plugin/woocommerce.zip",
"."
],
"mappings": {
"wp-content/mu-plugins": "./bin/wp-env/mu-plugins"
},
"phpVersion": "8.1",
"autoPort": true
}
Loading
Loading