Skip to content

#131 Add GitHub Actions workflow for automated release process #38

#131 Add GitHub Actions workflow for automated release process

#131 Add GitHub Actions workflow for automated release process #38

Workflow file for this run

name: Test
on: [push, pull_request]
env:
NODE_VERSION: 18
MODULE_NAME: Bitpay_BPCheckout
COMPOSER_NAME: "bitpay/module-bpcheckout"
jobs:
unit-tests-81:
name: Unit Tests (PHP 8.1)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
MAGENTO_VERSION: ["2.4.4", "2.4.5", "2.4.6"]
steps:
- uses: actions/checkout@v4
- uses: extdn/github-actions-m2/magento-unit-tests/8.1@master
with:
block_insecure: false
env:
MAGENTO_VERSION: ${{ matrix.MAGENTO_VERSION }}
unit-tests-82:
name: Unit Tests (PHP 8.2)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
MAGENTO_VERSION: ["2.4.6", "2.4.7", "2.4.8"]
steps:
- uses: actions/checkout@v4
- uses: extdn/github-actions-m2/magento-unit-tests/8.2@master
env:
MAGENTO_VERSION: ${{ matrix.MAGENTO_VERSION }}
unit-tests-83:
name: Unit Tests (PHP 8.3)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
MAGENTO_VERSION: ["2.4.7", "2.4.8"]
steps:
- uses: actions/checkout@v4
- uses: extdn/github-actions-m2/magento-unit-tests/8.3@master
env:
MAGENTO_VERSION: ${{ matrix.MAGENTO_VERSION }}
unit-tests-84:
name: Unit Tests (PHP 8.4)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
MAGENTO_VERSION: ["2.4.8"]
steps:
- uses: actions/checkout@v4
- uses: extdn/github-actions-m2/magento-unit-tests/8.4@master
env:
MAGENTO_VERSION: ${{ matrix.MAGENTO_VERSION }}
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run linter
run: |
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require magento/magento-coding-standard --dev
cd vendor/magento/magento-coding-standard
npm install
cd ../../../
./vendor/magento/magento-coding-standard/node_modules/.bin/eslint -c ./vendor/magento/magento-coding-standard/eslint/eslint.config.mjs -- ./view