Skip to content

Fix invalid column name in the magento2 template #255

Fix invalid column name in the magento2 template

Fix invalid column name in the magento2 template #255

Workflow file for this run

name: 'Tests'
on:
pull_request: ~
push:
branches:
- 'main'
jobs:
tests:
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-version:
- '8.1'
- '8.2'
services:
mysql:
image: 'mariadb:10.5'
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: '!root'
MYSQL_USER: 'tests'
MYSQL_PASSWORD: 'tests'
MYSQL_DATABASE: 'tests'
ports:
- 3306
options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
- name: 'Install PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php-version }}'
coverage: 'none'
extensions: 'mbstring, mysql'
tools: 'composer:v2'
- name: 'Get composer cache directory'
id: 'composer-cache'
run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT'
- name: 'Cache dependencies'
uses: 'actions/cache@v3'
with:
path: '${{ steps.composer-cache.outputs.dir }}'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: '${{ runner.os }}-composer-'
- name: 'Install dependencies'
run: 'composer install --prefer-dist'
- name: 'Run PHPUnit'
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
run: 'vendor/bin/phpunit'