Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.1.6 #392

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
94923fe
NPM(deps): Bump @wordpress/icons from 10.11.0 to 10.12.0
dependabot[bot] Nov 18, 2024
1c8ab3b
Composer(deps): Bump newfold-labs/wp-module-data from 2.6.6 to 2.6.7
dependabot[bot] Nov 20, 2024
d40a13a
Merge pull request #364 from newfold-labs/dependabot/composer/develop…
circlecube Nov 20, 2024
bd25ea1
Composer(deps): Bump newfold-labs/wp-module-notifications
dependabot[bot] Nov 20, 2024
6e324b8
Merge pull request #363 from newfold-labs/dependabot/composer/develop…
circlecube Nov 20, 2024
6361436
NPM Dev(deps-dev): Bump @wordpress/env from 10.11.0 to 10.12.0
dependabot[bot] Nov 20, 2024
1ba67da
NPM(deps): Bump @wordpress/compose from 7.11.0 to 7.12.0
dependabot[bot] Nov 20, 2024
0ba0af3
Merge pull request #359 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Nov 20, 2024
96266f5
Merge pull request #358 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Nov 20, 2024
01b266a
Merge pull request #361 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Nov 20, 2024
4d864d6
NPM Dev(deps-dev): Bump @wordpress/scripts from 27.9.0 to 30.5.1
dependabot[bot] Nov 20, 2024
e1e833d
NPM(deps): Bump @wordpress/element from 6.11.0 to 6.12.0
dependabot[bot] Nov 20, 2024
4d9cacd
Merge pull request #360 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Nov 20, 2024
15cfde8
Merge pull request #362 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Nov 20, 2024
691a3be
NPM(deps): Bump @heroicons/react from 2.1.5 to 2.2.0
dependabot[bot] Nov 21, 2024
6cbd761
Composer(deps): Bump newfold-labs/wp-module-coming-soon
dependabot[bot] Dec 4, 2024
bbebb98
add versioning script and command
circlecube Dec 5, 2024
6491148
Merge pull request #374 from newfold-labs/dependabot/composer/develop…
circlecube Dec 5, 2024
b326246
Composer Dev(deps-dev): Bump wp-phpunit/wp-phpunit from 6.7.0 to 6.7.1
dependabot[bot] Dec 5, 2024
0eeb8a5
Merge pull request #370 from newfold-labs/dependabot/composer/develop…
circlecube Dec 5, 2024
a17bdf5
update cypress config to exclude coming soon woo depdendent test when…
circlecube Dec 5, 2024
06864c1
Merge branch 'develop' into add/versioning-command
circlecube Dec 5, 2024
e7142e0
auto retry workflow step when wp install fails
circlecube Dec 5, 2024
b5ab5b8
Composer(deps): Bump newfold-labs/wp-module-data from 2.6.7 to 2.6.8
dependabot[bot] Dec 9, 2024
a81b1af
NPM(deps): Bump @wordpress/dom-ready from 4.11.0 to 4.14.0
dependabot[bot] Dec 11, 2024
0a5a75a
NPM(deps): Bump @wordpress/i18n from 5.11.0 to 5.14.0
dependabot[bot] Dec 11, 2024
0911052
NPM Dev(deps-dev): Bump tailwindcss from 3.4.15 to 3.4.17
dependabot[bot] Dec 18, 2024
2f121a3
NPM Dev(deps-dev): Bump cypress from 13.15.2 to 13.17.0
dependabot[bot] Dec 18, 2024
8aa8a5f
Merge pull request #376 from newfold-labs/add/versioning-command
circlecube Dec 18, 2024
1bc1cd2
Merge pull request #384 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 18, 2024
894746e
Merge pull request #385 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 18, 2024
8c2adb9
Merge pull request #378 from newfold-labs/dependabot/composer/develop…
circlecube Dec 18, 2024
6be1c2c
Merge pull request #367 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 18, 2024
dffcd7a
Merge pull request #379 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 18, 2024
9abe3f9
Merge pull request #380 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 18, 2024
01b6f46
Composer(deps): Bump newfold-labs/wp-module-loader from 1.0.10 to 1.0.11
dependabot[bot] Dec 18, 2024
6f8caa0
Merge pull request #381 from newfold-labs/dependabot/composer/develop…
circlecube Dec 18, 2024
c7d5a1c
Composer(deps): Bump newfold-labs/wp-module-deactivation
dependabot[bot] Dec 18, 2024
0fd546c
Merge pull request #383 from newfold-labs/dependabot/composer/develop…
circlecube Dec 18, 2024
cf1619d
Composer(deps): Bump newfold-labs/wp-module-coming-soon
dependabot[bot] Dec 18, 2024
ae54d8d
Merge pull request #382 from newfold-labs/dependabot/composer/develop…
circlecube Dec 18, 2024
469d7c2
Composer(deps): Bump newfold-labs/wp-module-performance
dependabot[bot] Dec 18, 2024
6c139a8
NPM(deps): Bump react-use from 17.5.1 to 17.6.0
dependabot[bot] Dec 19, 2024
b96aeed
NPM(deps): Bump @wordpress/compose from 7.12.0 to 7.14.0
dependabot[bot] Dec 19, 2024
3936ec2
NPM(deps): Bump @wordpress/element from 6.12.0 to 6.14.0
dependabot[bot] Dec 19, 2024
3bcebca
Merge pull request #388 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 19, 2024
b1ce43c
Merge pull request #390 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 19, 2024
9ce6b01
Merge pull request #389 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 19, 2024
652d9ca
NPM(deps): Bump react-router-dom from 6.28.0 to 7.0.2
dependabot[bot] Dec 19, 2024
684867d
Merge pull request #391 from newfold-labs/dependabot/npm_and_yarn/dev…
circlecube Dec 19, 2024
6e4fabe
include html-react-parser dependency
circlecube Dec 19, 2024
8206921
bump wordpress version
circlecube Dec 19, 2024
4d024c7
Merge pull request #386 from newfold-labs/dependabot/composer/develop…
circlecube Dec 19, 2024
2be0e18
set version bump to 2.1.6
circlecube Dec 19, 2024
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
6 changes: 5 additions & 1 deletion .github/workflows/cypress-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ jobs:
echo '{"wpVersion": "${{ matrix.wpVersion }}","phpVersion": "${{ matrix.phpVersion }}"}' > cypress.env.json

- name: Install WordPress
run: npx wp-env start --debug
uses: nick-fields/retry@v3
with:
timeout_minutes: 4
max_attempts: 3
command: npx wp-env start --debug

- name: Run Cypress Tests
if: ${{ github.repository != 'newfold-labs/wp-plugin-web' || github.actor == 'dependabot[bot]' }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ jobs:
run: echo '{"config":{"WP_DEBUG_DISPLAY":false},"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json

- name: Install WordPress
run: npx @wordpress/env@latest start
uses: nick-fields/retry@v3
with:
timeout_minutes: 4
max_attempts: 3
command: npx wp-env start --debug

- name: Run Cypress Tests
if: ${{ github.repository != 'newfold-labs/wp-plugin-web' || github.actor == 'dependabot[bot]' }}
Expand Down
2 changes: 1 addition & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core": "WordPress/WordPress#tags/6.7",
"core": "WordPress/WordPress#tags/6.7.1",
"config": {
"WP_DEBUG": true,
"WP_DEBUG_LOG": true,
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@
"doctrine/inflector": "1.2.0 as 1.3.1",
"newfold-labs/wp-module-activation": "^1.0.5",
"newfold-labs/wp-module-atomic": "^1.3",
"newfold-labs/wp-module-coming-soon": "^1.3.0",
"newfold-labs/wp-module-coming-soon": "^1.3.3",
"newfold-labs/wp-module-context": "^1.0.1",
"newfold-labs/wp-module-data": "^2.6.6",
"newfold-labs/wp-module-deactivation": "^1.2.3",
"newfold-labs/wp-module-data": "^2.6.8",
"newfold-labs/wp-module-deactivation": "^1.3.0",
"newfold-labs/wp-module-features": "^1.4.2",
"newfold-labs/wp-module-loader": "^1.0.10",
"newfold-labs/wp-module-loader": "^1.0.11",
"newfold-labs/wp-module-marketplace": "^2.4.0",
"newfold-labs/wp-module-notifications": "^1.6.5",
"newfold-labs/wp-module-performance": "^2.0.1",
"newfold-labs/wp-module-notifications": "^1.6.6",
"newfold-labs/wp-module-performance": "^2.1.0",
"newfold-labs/wp-module-runtime": "^1.0.12",
"newfold-labs/wp-module-secure-passwords": "^1.1.1",
"newfold-labs/wp-module-sso": "^1.0.7",
Expand All @@ -82,6 +82,6 @@
"newfold-labs/wp-php-standards": "^1.2.4",
"roave/security-advisories": "dev-latest",
"wp-cli/i18n-command": "^2.6.2",
"wp-phpunit/wp-phpunit": "^6.7.0"
"wp-phpunit/wp-phpunit": "^6.7.1"
}
}
225 changes: 170 additions & 55 deletions composer.lock

Large diffs are not rendered by default.

59 changes: 58 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,52 @@ module.exports = defineConfig({
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./tests/cypress/plugins/index.js')(on, config)

const semver = require('semver');

// Ensure that the base URL is always properly set.
if (config.env && config.env.baseUrl) {
config.baseUrl = config.env.baseUrl;
}

// Ensure that we have a semantically correct WordPress version number for comparisons.
if (config.env.wpVersion) {
if (config.env.wpVersion.split('.').length !== 3) {
config.env.wpSemverVersion = `${config.env.wpVersion}.0`;
} else {
config.env.wpSemverVersion = config.env.wpVersion;
}
}

if (config.env.phpVersion) {
if (config.env.phpVersion.split('.').length !== 3) {
config.env.phpSemverVersion = `${config.env.phpVersion}.0`;
} else {
config.env.phpSemverVersion = config.env.phpVersion;
}
}

// Tests requires Woo, so exclude if not supported due to WP or PHP versions
if ( ! supportsWoo( config.env ) ) {
config.excludeSpecPattern = config.excludeSpecPattern.concat( [
'vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon-woo.cy.js',
] );
}

on('task', {
log(message) {
console.log(message)

return null
},
table(message) {
console.table(message)

return null
}
})

return config;
},
baseUrl: 'http://localhost:8886',
specPattern: [
Expand All @@ -46,3 +91,15 @@ module.exports = defineConfig({
retries: 1,
experimentalMemoryManagement: true,
})

// Check against plugin support at https://wordpress.org/plugins/woocommerce/
const supportsWoo = ( env ) => {
const semver = require( 'semver' );
if (
semver.satisfies( env.wpSemverVersion, '>=6.5.0' ) &&
semver.satisfies( env.phpSemverVersion, '>=7.4.0' )
) {
return true;
}
return false;
};
Loading
Loading