Skip to content

Added old MySQL versions to tests. #97

Added old MySQL versions to tests.

Added old MySQL versions to tests. #97

Workflow file for this run

name: Test on MySQL
on: [ push ]
env:
DB_DATABASE: s2_test
DB_USER: root
DB_PASSWORD: ''
APP_DB_TYPE: mysql
jobs:
build:
strategy:
fail-fast: false
matrix:
operating_system: ['ubuntu-22.04']
mysql_versions:
# - 'mariadb-10.4'
# - 'mariadb-10.5'
# - 'mariadb-10.6'
# - 'mariadb-10.11'
# - 'mariadb-11.0'
# - 'mariadb-11.1'
# - 'mariadb-11.2'
# - 'mariadb-11.3'
# - 'mariadb-11.4'
- '5.6'
- '5.7'
- '8.0'
# - '8.2'
# - '8.3'
php_versions:
- '8.2'
include:
-
operating_system: 'ubuntu-22.04'
php_versions: 8.3
mysql_versions: 'mariadb-11.3'
runs-on: '${{ matrix.operating_system }}'
steps:
- uses: actions/checkout@v3
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: ${{ matrix.mysql_versions }}
root-password: ${{ env.DB_PASSWORD }}
- name: 'Setup MySQL'
run: |
mysql -e 'SELECT version();' -u${{ env.DB_USER }} -h127.0.0.1 -p${{ env.DB_PASSWORD }}
- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction
- name: Run acceptance test cases
run: sh ./test_sh
- name: Run integration test cases
run: php _vendor/bin/codecept run integration
- name: Output logs
if: failure()
run: cat _cache/test/*.log && cat _tests/_output/email/*.txt