Skip to content

ci: report mutation testing results to Stryker dashboard #10

ci: report mutation testing results to Stryker dashboard

ci: report mutation testing results to Stryker dashboard #10

Workflow file for this run

---
name: 🛢️ MySQL
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- 1.x
push:
branches:
- 1.x
jobs:
acceptance:
name: MySQL · PHP ${{ matrix.php-version }}
timeout-minutes: 8
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: true
group: mysql-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}
strategy:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v6
- name: 🛠️ Start MySQL
run: docker compose -f tests/docker-compose.yml up -d cycle-mysql
- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: pdo, pdo_sqlite, pdo_mysql
ini-values: error_reporting=E_ALL
- name: 📥 Install dependencies with composer
uses: ramsey/composer-install@v3
env:
COMPOSER_ROOT_VERSION: '1.x-dev'
with:
dependency-versions: highest
- name: ⏳ Wait for MySQL
run: |
for i in $(seq 1 30); do
if docker exec $(docker ps -qf "ancestor=mysql:8.0.37") mysqladmin ping -h 127.0.0.1 --silent; then
echo "MySQL is up"; exit 0
fi
echo "Waiting for MySQL... ($i)"; sleep 2
done
echo "MySQL did not become ready in time"; exit 1
- name: 🧪 Run acceptance tests (MySQL)
env:
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 13306
MYSQL_USER: root
MYSQL_PASSWORD: 'YourStrong!Passw0rd'
MYSQL_DATABASE: spiral
run: composer test:mysql