From c271b40e38f36baa1bcb05804f4634a15e94b364 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Fri, 5 Jul 2024 13:17:52 +0200 Subject: [PATCH] [11.x] Run MySQL 9 Database Integration Tests nightly (#52027) * Run MySQL 9 Database Integration Tests nightly * Update workflow name * Apply suggestions from code review * Update .github/workflows/databases-nightly.yml Co-authored-by: Julius Kiekbusch --------- Co-authored-by: Dries Vints --- .github/workflows/databases-nightly.yml | 44 +++++++++++++++++++++++++ .github/workflows/databases.yml | 2 +- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/.github/workflows/databases-nightly.yml b/.github/workflows/databases-nightly.yml index cfbe8f1f7de6..12f7b87352c6 100644 --- a/.github/workflows/databases-nightly.yml +++ b/.github/workflows/databases-nightly.yml @@ -5,6 +5,50 @@ on: - cron: '0 0 * * *' jobs: + mysql_9: + runs-on: ubuntu-24.04 + + services: + mysql: + image: mysql:9 + env: + MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_DATABASE: laravel + ports: + - 3306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + + strategy: + fail-fast: true + + name: MySQL 9 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr + tools: composer:v2 + coverage: none + + - name: Set Framework version + run: composer config version "11.x-dev" + + - name: Install dependencies + uses: nick-fields/retry@v3 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress + + - name: Execute tests + run: vendor/bin/phpunit tests/Integration/Database + env: + DB_CONNECTION: mysql mariadb: runs-on: ubuntu-24.04 diff --git a/.github/workflows/databases.yml b/.github/workflows/databases.yml index 4250a9af5a3b..5db77fab35bc 100644 --- a/.github/workflows/databases.yml +++ b/.github/workflows/databases.yml @@ -70,7 +70,7 @@ jobs: strategy: fail-fast: true - name: MySQL 8.0 + name: MySQL 8 steps: - name: Checkout code