Test multi-byte characters #71
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: PHP Composer | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Run tests on ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ '8.1', '8.2', '8.3' ] | |
services: | |
mysql: | |
image: mysql:8.4 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: Phaster | |
ports: | |
# map port 3306 on service container to the host | |
- 3306:3306 | |
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Docs: https://github.com/shivammathur/setup-php | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: psalm | |
extensions: sqlsrv-5.10.1 | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Install Composer dependencies | |
run: composer install --no-progress | |
- name: Run Psalm | |
run: psalm --output-format=github | |
if: ${{ matrix.php == '8.3' }} | |
- name: Run PHPUnit | |
run: composer test-mysql |