Merge branch 'release/3.3.3-beta.2' #384
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests (PHP) | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.1, 8.0] | |
os: [ ubuntu-latest ] | |
stability: [stable, dev] | |
dependency-version: [prefer-stable] | |
runs-on: ${{ matrix.os }} | |
env: | |
DB_DATABASE: scout_testing | |
DB_USER: root | |
DB_PASSWORD: root | |
DB_PORT: 3306 | |
DB_DRIVER: mysql | |
DB_SERVER: 127.0.0.1 | |
APP_ENV: testing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up MySQL | |
run: | | |
sudo /etc/init.d/mysql start | |
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} | |
- name: Setup cache environment | |
id: cache-env | |
uses: shivammathur/cache-extensions@v1 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring,dom,fileinfo,mysql,imagick,bcmath,pcntl,zip,soap,intl,gd,exif,iconv | |
key: extensions | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring,dom,fileinfo,mysql,imagick,bcmath,pcntl,zip,soap,intl,gd,exif,iconv | |
coverage: none | |
- name: Install dependencies | |
run: | | |
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction | |
- name: Run eventHandlersTest | |
run: ./vendor/bin/codecept run unit EventHandlersTest | |
- name: Run AbstractEngineTest | |
run: ./vendor/bin/codecept run unit AbstractEngineTest | |
- name: Run ScoutVariableTest | |
run: ./vendor/bin/codecept run unit ScoutVariableTest | |
- name: Run SearchableBehaviorTest | |
run: ./vendor/bin/codecept run unit SearchableBehaviorTest | |