Skip to content

Commit 99a7995

Browse files
Jubekicrynobone
andauthored
[11.x] Add Databases nightly workflow (#51218)
* Add Databases nightly workflow * Fix indention * Continue on error Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com> --------- Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 4dcd347 commit 99a7995

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: databases-nightly
2+
3+
on:
4+
pull_request: # TODO: Remove before merge
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
10+
mariadb:
11+
runs-on: ubuntu-22.04
12+
continue-on-error: true
13+
14+
services:
15+
mariadb:
16+
image: quay.io/mariadb-foundation/mariadb-devel:verylatest
17+
env:
18+
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
19+
MARIADB_DATABASE: laravel
20+
ports:
21+
- 3306:3306
22+
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
23+
24+
strategy:
25+
fail-fast: true
26+
27+
name: MariaDB Very Latest
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Setup PHP
34+
uses: shivammathur/setup-php@v2
35+
with:
36+
php-version: 8.2
37+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr
38+
tools: composer:v2
39+
coverage: none
40+
41+
- name: Set Framework version
42+
run: composer config version "11.x-dev"
43+
44+
- name: Install dependencies
45+
uses: nick-fields/retry@v3
46+
with:
47+
timeout_minutes: 5
48+
max_attempts: 5
49+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
50+
51+
- name: Execute tests
52+
run: vendor/bin/phpunit tests/Integration/Database
53+
env:
54+
DB_CONNECTION: mariadb

0 commit comments

Comments
 (0)