Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Add Databases nightly workflow #51218

Merged
merged 3 commits into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/databases-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: databases-nightly

on:
pull_request: # TODO: Remove before merge
driesvints marked this conversation as resolved.
Show resolved Hide resolved
schedule:
- cron: '0 0 * * *'

jobs:

mariadb:
runs-on: ubuntu-22.04
Jubeki marked this conversation as resolved.
Show resolved Hide resolved
Jubeki marked this conversation as resolved.
Show resolved Hide resolved
continue-on-error: true

services:
mariadb:
image: quay.io/mariadb-foundation/mariadb-devel:verylatest
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
MARIADB_DATABASE: laravel
ports:
- 3306:3306
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3

strategy:
fail-fast: true

name: MariaDB Very Latest

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"
driesvints marked this conversation as resolved.
Show resolved Hide resolved

- 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: mariadb