Skip to content

Update README.md

Update README.md #169

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- "main"
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.4']
magento: ['2.3.7-p2', '2.4.0', '2.4.1', '2.4.2', '2.4.3']
coveralls: [ false ]
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.1'
magento: '2.4.4'
coveralls: true
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
coverage: xdebug
extensions: bcmath, gd
- name: Install Composer dependencies
run: composer install
- name: Install Magento 2.3.7-p2
if: matrix.magento == '2.3.7-p2'
run: composer update --with-dependencies magento/framework:102.0.7-p2 magento/module-catalog:103.0.7-p2 magento/module-cms:103.0.7-p2 magento/module-customer:102.0.7-p2 magento/module-user:101.1.7 infection/infection:0.22.0
- name: Install Magento 2.4.0
if: matrix.magento == '2.4.0'
run: composer update --with-dependencies magento/framework:103.0.0 magento/module-catalog:104.0.0 magento/module-cms:104.0.0 magento/module-customer:103.0.0 magento/module-user:101.2.0 infection/infection:0.22.0
- name: Install Magento 2.4.1
if: matrix.magento == '2.4.1'
run: composer update --with-dependencies magento/framework:103.0.1 magento/module-catalog:104.0.1 magento/module-cms:104.0.1 magento/module-customer:103.0.1 magento/module-user:101.2.1 infection/infection:0.22.0
- name: Install Magento 2.4.2
if: matrix.magento == '2.4.2'
run: composer update --with-dependencies magento/framework:103.0.2 magento/module-catalog:104.0.2 magento/module-cms:104.0.2 magento/module-customer:103.0.2 magento/module-user:101.2.2
- name: Install Magento 2.4.3
if: matrix.magento == '2.4.3'
run: composer update --with-dependencies magento/framework:103.0.3 magento/module-catalog:104.0.3 magento/module-cms:104.0.3 magento/module-customer:103.0.3 magento/module-user:101.2.3
- name: Install Magento 2.4.4
if: matrix.magento == '2.4.4'
run: composer update --with-dependencies magento/framework:103.0.4 magento/module-catalog:104.0.4 magento/module-cms:104.0.4 magento/module-customer:103.0.4 magento/module-user:101.2.4
- name: Codesniffer
run: composer cs-check
- name: Static code analysis
run: composer analyze
- name: Unittests
run: composer test
if: matrix.coveralls == false
- name: Unittests with coverage
if: matrix.coveralls == true
run: composer coverage
- name: Coveralls report
if: matrix.coveralls == true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer require php-coveralls/php-coveralls
./vendor/bin/php-coveralls --coverage_clover=clover.xml -v