Skip to content

MAG2-304 - Changed Client API hash parameters to sha2-384 encoding #324

MAG2-304 - Changed Client API hash parameters to sha2-384 encoding

MAG2-304 - Changed Client API hash parameters to sha2-384 encoding #324

Workflow file for this run

name: Build and Test with Magento 2.3
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.3']
magento-versions: ['2.3']
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, gd, bcmath, ctype, curl, dom, hash, iconv, intl, openssl, simplexml, soap, xsl, zip
tools: composer:v1.8
- name: Validate composer.json and composer.lock
run: composer validate
- name: PHP Syntax Checker
run: find . -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- name: Delay for mysql startup
run: sleep 20
- name: Delay for mysql startup
run: sleep 20
- name: Setup Magento 2 and run tests
run: |
mysql -u root --password=root -h 127.0.0.1 -e 'CREATE DATABASE IF NOT EXISTS magento;'
git clone --depth=1 -b ${{ matrix.magento-versions }} https://github.com/magento/magento2 /tmp/build
cd /tmp/build
composer update
php bin/magento setup:install --base-url=http://magebuild.integrations.p1-test.de/build/ \
--db-host=127.0.0.1 --db-name=magento --db-user=root --db-password=root --admin-firstname=Dieter \
--admin-lastname=Demo [email protected] --admin-user=DieterDemo \
--admin-password=72q980hdfq2378ga9w87dg6 --language=de_DE --currency=EUR --timezone=Europe/Berlin \
composer require --ignore-platform-reqs payone-gmbh/magento-2 dev-master
rm -rf /tmp/build/vendor/payone-gmbh/magento-2/*
cp -R $GITHUB_WORKSPACE/* /tmp/build/vendor/payone-gmbh/magento-2
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/payone-gmbh/magento-2/Test/Unit