Remove outdated workaround #113
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: PHPUnit | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:latest | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: true | |
MYSQL_DATABASE: mp_test | |
ports: | |
- 3306/tcp | |
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | |
env: | |
extensions: intl,memcached,apcu,mysql | |
strategy: | |
matrix: | |
php: ['8.1', '8.2', '8.3', '8.4'] | |
db: ['mysql', 'sqlite'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "none" | |
ini-values: date.timezone=Europe/Berlin | |
php-version: "${{ matrix.php }}" | |
extensions: "${{ env.extensions }}" | |
- name: Start MySQL service | |
if: "${{ matrix.db == 'mysql' }}" | |
run: | | |
mysql --host=localhost --port=${{ job.services.mysql.ports[3306] }} --protocol=TCP -u root -e 'create database IF NOT EXISTS mp_test;' | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php-${{ matrix.php }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run test suite | |
run: vendor/bin/phpunit | |
env: | |
DB: travis/${{ matrix.db }} | |
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} |