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

3.3.0 Release #128

Merged
merged 9 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 0 additions & 34 deletions .github/workflows/deploy.yml

This file was deleted.

102 changes: 70 additions & 32 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
Expand All @@ -27,7 +28,7 @@ jobs:
coverage: "none"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
Expand All @@ -39,31 +40,22 @@ jobs:
- name: "Check source code for syntax errors"
run: "composer exec -- parallel-lint src/ tests/"

integration_tests:
name: "2️⃣ Integration tests"
unit_tests:
name: "2️⃣ Unit tests"
needs:
- "syntax_errors"
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.allowed_failure }}
strategy:
fail-fast: false
matrix:
php: [ '7.4' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
allowed_failure: [ false ]
dependencies:
- "lowest"
- "highest"
include:
- php: '8.0'
allowed_failure: true
- php: '8.1'
allowed_failure: true
- php: '8.2'
- php: '8.4'
allowed_failure: true
exclude:
- php: '8.1'
allowed_failure: true
dependencies: "lowest" # Fails due to PHP parser error on a specific version.
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -72,7 +64,7 @@ jobs:
coverage: "xdebug"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
Expand All @@ -81,31 +73,69 @@ jobs:
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")

- name: "Setup test suite"
run: "vendor/bin/wp-pest setup plugin --plugin-slug=woo-solo-api --skip-delete"
run: "./vendor/bin/wp-pest setup plugin --plugin-slug=woo-solo-api --skip-delete"

- name: "Execute unit tests"
run: "./vendor/bin/pest --group=unit"

integration_tests:
name: "3️⃣ Integration tests"
needs:
- "syntax_errors"
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.allowed_failure }}
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
allowed_failure: [ false ]
dependencies:
- "highest"
include:
- php: '8.4'
allowed_failure: true
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
coverage: "xdebug"

- name: "Checkout code"
uses: "actions/checkout@v4"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")

- name: "Add woocommerce plugin"
run: |
wget https://downloads.wordpress.org/plugin/woocommerce.zip
unzip woocommerce.zip
mv woocommerce ../

- name: "Setup test suite"
run: "./vendor/bin/wp-pest setup plugin --plugin-slug=woo-solo-api --skip-delete"


- name: "Execute integration tests"
run: "./vendor/bin/pest --group=integration"

static_analysis:
name: "3️⃣ Static analysis checks"
name: "4️⃣ Static analysis checks"
needs:
- "syntax_errors"
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.allowed_failure }}
strategy:
fail-fast: false
matrix:
php: [ '7.4' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
allowed_failure: [ false ]
include:
- php: '8.0'
allowed_failure: true
- php: '8.1'
allowed_failure: true
- php: '8.2'
- php: '8.4'
allowed_failure: true
steps:
- name: "Set up PHP"
Expand All @@ -115,7 +145,7 @@ jobs:
coverage: "none"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Validate Composer configuration"
run: "composer validate --strict"
Expand All @@ -130,7 +160,7 @@ jobs:
run: "composer run test:types"

coding_standards:
name: "4️⃣ Coding standards checks"
name: "5️⃣ Coding standards checks"
needs:
- "syntax_errors"
runs-on: "ubuntu-latest"
Expand All @@ -146,6 +176,10 @@ jobs:
allowed_failure: true # Change to false once php-compatibility 10 comes out
- php: '8.2'
allowed_failure: true # Change to false once php-compatibility 10 comes out
- php: '8.3'
allowed_failure: true # Change to false once php-compatibility 10 comes out
- php: '8.4'
allowed_failure: true # Change to false once php-compatibility 10 comes out
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -155,7 +189,7 @@ jobs:
tools: "cs2pr"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
Expand All @@ -167,9 +201,8 @@ jobs:
run: |
composer run test:style -- -q --report=checkstyle | cs2pr


asset_lint:
name: "5️⃣ ES Lint and Stylelint checks"
name: "6️⃣ ES Lint and Stylelint checks"
needs:
- "syntax_errors"
runs-on: "ubuntu-latest"
Expand All @@ -180,12 +213,17 @@ jobs:

steps:
- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Use Node.js ${{ matrix.node }}"
uses: "actions/setup-node@v3"
with:
node-version: "${{ matrix.node }}"
- run: |
npm install
gsnpm run lint

- name: "Install dependencies"
run: |
npm ci

- name: "Run checks"
run: |
npm run lint
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a

_No documentation available about unreleased changes as of yet._

## [3.3.0] - 2024-01-16

### Added

* Additional api response errors in case of an email sending failure, for easier debugging

### Fixed

* Extended the timeout value of fetching PDF from Solo service

### Changed

* Minor package updates

## [3.2.0] - 2023-08-30

### Added
Expand Down Expand Up @@ -433,6 +447,7 @@ A lot of issues were fixed. The plugin should be more stable and work better now
* Initial release

[Unreleased]: https://github.com/dingo-d/woo-solo-api/compare/master...HEAD
[3.3.0]: https://github.com/dingo-d/woo-solo-api/compare/3.2.0...3.3.0
[3.2.0]: https://github.com/dingo-d/woo-solo-api/compare/3.1.1...3.2.0
[3.1.1]: https://github.com/dingo-d/woo-solo-api/compare/3.1.0...3.1.1
[3.1.0]: https://github.com/dingo-d/woo-solo-api/compare/3.0.1...3.1.0
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
**Tags**: woocommerce, api, solo api, solo, api integration, shop, payment, woo
**Requires at least**: 6.0
**Requires PHP**: 7.4
**Tested up to**: 6.3.1
**Stable tag**: 3.2.0
**Tested up to**: 6.4.2
**Stable tag**: 3.3.0
**WC requires at least**: 7.0.0
**WC tested up to**: 8.0.3
**WC tested up to**: 8.4.0
**License**: MIT
**License URI**: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -155,5 +155,5 @@ You can modify the request towards the Solo service using hooks described in the

## License

Copyright ©2023 Denis Žoljom.
Copyright ©2024 Denis Žoljom.
This plugin is free software, and may be redistributed under the terms specified in the LICENSE file.
23 changes: 19 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== Woo Solo Api ===
Contributors: dingo_d
Tags: woocommerce, api, solo api, solo, api integration, shop, payment, woo
Requires at least: 6.0
Requires at least: 6.1
Requires PHP: 7.4
Tested up to: 6.3.1
Stable tag: 3.2.0
Tested up to: 6.4.2
Stable tag: 3.3.0
WC requires at least: 7.0.0
WC tested up to: 8.0.3
WC tested up to: 8.4.0
License: MIT
License URI: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -66,6 +66,21 @@ Be sure you have WooCommerce plugin installed first, otherwise you'll get an err

== Changelog ==

= 3.2.0 =
Release Date: January 16th, 2024

### Added

* Additional api response errors in case of an email sending failure, for easier debugging

### Fixed

* Extended the timeout value of fetching PDF from Solo service

### Changed

* Minor package updates

= 3.2.0 =
Release Date: August 30th, 2023

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"test:lint": "@php ./vendor/bin/parallel-lint src/ tests/",
"test:unit": "@php ./vendor/bin/pest --group=unit",
"test:integration": "@php ./vendor/bin/pest --group=integration",
"test:coverage": "@php ./vendor/bin/pest --group=integration --coverage",
"test:coverage": "@php -dxdebug.mode=coverage ./vendor/bin/pest --group=integration --coverage",
"check-all": [
"@test:types",
"@test:style",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woo-solo-api",
"version": "3.2.0",
"version": "3.3.0",
"description": "This plugin provides integration of the SOLO API service with WooCommerce.",
"authors": [
{
Expand Down
3 changes: 1 addition & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parameters:
level: 6
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
scanFiles:
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
# wc_admin_connect_page() comes from woocommerce-admin package
Expand All @@ -13,5 +14,3 @@ parameters:
- src/
excludePaths:
- src/Core/CompiledContainer.php
- wp/
- wp-content/
Loading
Loading