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

v1.8.4 #20

Merged
merged 1 commit into from
Sep 23, 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
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Install & Build Magento
id: build-magento
run: bash bin/install-mg2.sh
run: bash bin/install-mg2.sh 2.4.7-p2

- name: Install MP Plugin
id: install-plugin
Expand Down
112 changes: 112 additions & 0 deletions .github/workflows/test-m2.4.4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Test Magento 2.4.4

on: [pull_request]

jobs:
validate-tests:
name: Run Tests
runs-on: ubuntu-22.04

services:
mysql:
image: mysql:latest
env:
MYSQL_DATABASE: magento_test
MYSQL_HOST: 127.0.0.1
MYSQL_USER: magento
MYSQL_PASSWORD: p@ssw0rd1
MYSQL_ROOT_PASSWORD: p@ssw0rd1
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install extensions gd and zip
run: sudo apt-get update && sudo apt-get install -y php8.1-gd && sudo apt-get install -y php8.1-zip

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: curl, dom, intl, json, openssl
coverage: xdebug

- name: Verify PHP Installation
run: php -v

- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Setup cache
uses: pat-s/[email protected]
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install & Build Magento
id: build-magento
run: bash bin/install-mg2.sh 2.4.4-p10

- name: Install MP Plugin
id: install-plugin
run: mkdir magento2/app/code/MercadoPago/ && mkdir magento2/app/code/MercadoPago/AdbPayment/ && mv $(ls --ignore='bin' --ignore='.github' --ignore='magento2') magento2/app/code/MercadoPago/AdbPayment && ls

- name: Run Unit Test
id: unit-test
run:
XDEBUG_MODE=coverage magento2/vendor/phpunit/phpunit/phpunit \
--configuration magento2/app/code/MercadoPago/AdbPayment/phpunit.xml \
--coverage-html coverage/ \
--coverage-clover coverage/clover.xml \
--coverage-filter magento2/app/code/MercadoPago/AdbPayment

- name: Repository Minimum Test Coverage
id: repository-coverage
run: php magento2/app/code/MercadoPago/AdbPayment/Tests/coverage-checker.php coverage/clover.xml 25

- id: pr-files-list
name: Get Pull Request Files
uses: ruslandulina/[email protected]

- id: save-modified-pr-files-list
name: Save modified PR Files List to a file
run: echo "${{join(steps.pr-files-list.outputs.modified, ' ')}}" > modified-files-list.txt

- id: save-added-pr-files-list
name: Save added PR Files List to a file
run: echo "${{join(steps.pr-added-list.outputs.added, ' ')}}" > added-files-list.txt

- name: PR Modified Files
run: cat modified-files-list.txt

- name: PR Added Files
run: cat added-files-list.txt

- name: Pull Request Coverage
id: pull-request-coverage
run: php magento2/app/code/MercadoPago/AdbPayment/Tests/pr-coverage.php coverage/clover.xml modified-files-list.txt added-files-list.txt 25

- name: List
run: ls && ls coverage

- name: ZIP coverage results
run: zip coverage.zip coverage

- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage.zip

- name: Archive code coverage folder
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHPUnit
name: Test Magento 2.4.5

on: [pull_request]

Expand Down Expand Up @@ -52,15 +52,15 @@ jobs:

- name: Install & Build Magento
id: build-magento
run: bash bin/install-mg2.sh
run: bash bin/install-mg2.sh 2.4.5-p9

- name: Install MP Plugin
id: install-plugin
run: mkdir magento2/app/code/MercadoPago/ && mkdir magento2/app/code/MercadoPago/AdbPayment/ && mv $(ls --ignore='bin' --ignore='.github' --ignore='magento2') magento2/app/code/MercadoPago/AdbPayment && ls

- name: Run Unit Test
id: unit-test
run:
run:
XDEBUG_MODE=coverage magento2/vendor/phpunit/phpunit/phpunit \
--configuration magento2/app/code/MercadoPago/AdbPayment/phpunit.xml \
--coverage-html coverage/ \
Expand All @@ -74,7 +74,7 @@ jobs:
- id: pr-files-list
name: Get Pull Request Files
uses: ruslandulina/[email protected]

- id: save-modified-pr-files-list
name: Save modified PR Files List to a file
run: echo "${{join(steps.pr-files-list.outputs.modified, ' ')}}" > modified-files-list.txt
Expand Down
112 changes: 112 additions & 0 deletions .github/workflows/test-m2.4.6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Test Magento 2.4.6

on: [pull_request]

jobs:
validate-tests:
name: Run Tests
runs-on: ubuntu-22.04

services:
mysql:
image: mysql:latest
env:
MYSQL_DATABASE: magento_test
MYSQL_HOST: 127.0.0.1
MYSQL_USER: magento
MYSQL_PASSWORD: p@ssw0rd1
MYSQL_ROOT_PASSWORD: p@ssw0rd1
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install extensions gd and zip
run: sudo apt-get update && sudo apt-get install -y php8.1-gd && sudo apt-get install -y php8.1-zip

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: curl, dom, intl, json, openssl
coverage: xdebug

- name: Verify PHP Installation
run: php -v

- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Setup cache
uses: pat-s/[email protected]
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install & Build Magento
id: build-magento
run: bash bin/install-mg2.sh 2.4.6-p7

- name: Install MP Plugin
id: install-plugin
run: mkdir magento2/app/code/MercadoPago/ && mkdir magento2/app/code/MercadoPago/AdbPayment/ && mv $(ls --ignore='bin' --ignore='.github' --ignore='magento2') magento2/app/code/MercadoPago/AdbPayment && ls

- name: Run Unit Test
id: unit-test
run:
XDEBUG_MODE=coverage magento2/vendor/phpunit/phpunit/phpunit \
--configuration magento2/app/code/MercadoPago/AdbPayment/phpunit.xml \
--coverage-html coverage/ \
--coverage-clover coverage/clover.xml \
--coverage-filter magento2/app/code/MercadoPago/AdbPayment

- name: Repository Minimum Test Coverage
id: repository-coverage
run: php magento2/app/code/MercadoPago/AdbPayment/Tests/coverage-checker.php coverage/clover.xml 25

- id: pr-files-list
name: Get Pull Request Files
uses: ruslandulina/[email protected]

- id: save-modified-pr-files-list
name: Save modified PR Files List to a file
run: echo "${{join(steps.pr-files-list.outputs.modified, ' ')}}" > modified-files-list.txt

- id: save-added-pr-files-list
name: Save added PR Files List to a file
run: echo "${{join(steps.pr-added-list.outputs.added, ' ')}}" > added-files-list.txt

- name: PR Modified Files
run: cat modified-files-list.txt

- name: PR Added Files
run: cat added-files-list.txt

- name: Pull Request Coverage
id: pull-request-coverage
run: php magento2/app/code/MercadoPago/AdbPayment/Tests/pr-coverage.php coverage/clover.xml modified-files-list.txt added-files-list.txt 25

- name: List
run: ls && ls coverage

- name: ZIP coverage results
run: zip coverage.zip coverage

- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage.zip

- name: Archive code coverage folder
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage/
112 changes: 112 additions & 0 deletions .github/workflows/test-m2.4.7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Test Magento 2.4.7

on: [pull_request]

jobs:
validate-tests:
name: Run Tests
runs-on: ubuntu-22.04

services:
mysql:
image: mysql:latest
env:
MYSQL_DATABASE: magento_test
MYSQL_HOST: 127.0.0.1
MYSQL_USER: magento
MYSQL_PASSWORD: p@ssw0rd1
MYSQL_ROOT_PASSWORD: p@ssw0rd1
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install extensions gd and zip
run: sudo apt-get update && sudo apt-get install -y php8.1-gd && sudo apt-get install -y php8.1-zip

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: curl, dom, intl, json, openssl
coverage: xdebug

- name: Verify PHP Installation
run: php -v

- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Setup cache
uses: pat-s/[email protected]
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install & Build Magento
id: build-magento
run: bash bin/install-mg2.sh 2.4.7-p2

- name: Install MP Plugin
id: install-plugin
run: mkdir magento2/app/code/MercadoPago/ && mkdir magento2/app/code/MercadoPago/AdbPayment/ && mv $(ls --ignore='bin' --ignore='.github' --ignore='magento2') magento2/app/code/MercadoPago/AdbPayment && ls

- name: Run Unit Test
id: unit-test
run:
XDEBUG_MODE=coverage magento2/vendor/phpunit/phpunit/phpunit \
--configuration magento2/app/code/MercadoPago/AdbPayment/phpunit.xml \
--coverage-html coverage/ \
--coverage-clover coverage/clover.xml \
--coverage-filter magento2/app/code/MercadoPago/AdbPayment

- name: Repository Minimum Test Coverage
id: repository-coverage
run: php magento2/app/code/MercadoPago/AdbPayment/Tests/coverage-checker.php coverage/clover.xml 25

- id: pr-files-list
name: Get Pull Request Files
uses: ruslandulina/[email protected]

- id: save-modified-pr-files-list
name: Save modified PR Files List to a file
run: echo "${{join(steps.pr-files-list.outputs.modified, ' ')}}" > modified-files-list.txt

- id: save-added-pr-files-list
name: Save added PR Files List to a file
run: echo "${{join(steps.pr-added-list.outputs.added, ' ')}}" > added-files-list.txt

- name: PR Modified Files
run: cat modified-files-list.txt

- name: PR Added Files
run: cat added-files-list.txt

- name: Pull Request Coverage
id: pull-request-coverage
run: php magento2/app/code/MercadoPago/AdbPayment/Tests/pr-coverage.php coverage/clover.xml modified-files-list.txt added-files-list.txt 25

- name: List
run: ls && ls coverage

- name: ZIP coverage results
run: zip coverage.zip coverage

- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage.zip

- name: Archive code coverage folder
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.8.4] - 2024-09-23
### Changed
- Rebranding of Mercado Credits
- Ajustments in Checkout Pro's layout

## Added
- Added online refund option for payment with Cho Pro

## [1.8.3] - 2024-09-05
### Changed
- Adjusting the rule used to obtain expired orders and cancel them via Cron
Expand Down
Loading
Loading