Skip to content

Commit 019ec40

Browse files
authored
Merge pull request #6456 from doctrine/3.8.x
Merge 3.8.x up into 4.0.x
2 parents 50fda19 + 0a332a3 commit 019ec40

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: "Continuous Integration (Nightly)"
2+
3+
on:
4+
schedule:
5+
- cron: "12 3 * * *"
6+
7+
env:
8+
fail-fast: true
9+
10+
jobs:
11+
phpunit-mariadb:
12+
name: "PHPUnit with MariaDB"
13+
runs-on: "ubuntu-24.04"
14+
15+
strategy:
16+
matrix:
17+
php-version:
18+
- "7.4"
19+
- "8.3"
20+
mariadb-version:
21+
- "earliest"
22+
- "verylatest"
23+
extension:
24+
- "mysqli"
25+
- "pdo_mysql"
26+
27+
services:
28+
mariadb:
29+
image: "quay.io/mariadb-foundation/mariadb-devel:${{ matrix.mariadb-version }}"
30+
env:
31+
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
32+
MARIADB_DATABASE: "doctrine_tests"
33+
34+
options: >-
35+
--health-cmd "healthcheck.sh --connect --innodb_initialized"
36+
37+
ports:
38+
- "3306:3306"
39+
40+
steps:
41+
- name: "Checkout"
42+
uses: "actions/checkout@v4"
43+
with:
44+
fetch-depth: 2
45+
46+
- name: "Install PHP"
47+
uses: "shivammathur/setup-php@v2"
48+
with:
49+
php-version: "${{ matrix.php-version }}"
50+
coverage: "pcov"
51+
ini-values: "zend.assertions=1"
52+
extensions: "${{ matrix.extension }}"
53+
54+
- name: "Install dependencies with Composer"
55+
uses: "ramsey/composer-install@v3"
56+
with:
57+
composer-options: "--ignore-platform-req=php+"
58+
59+
- name: "Run PHPUnit"
60+
run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml"
61+
62+
- name: Tell the MariaDB Folks if it failed
63+
if: ${{ failure() }}
64+
uses: zulip/github-actions-zulip/send-message@v1
65+
with:
66+
api-key: ${{ secrets.MARIADB_ZULIP_API_KEY }}
67+
68+
organization-url: "https://mariadb.zulipchat.com"
69+
to: "Buildbot"
70+
type: "stream"
71+
topic: "CI - Doctrine/DBAL"
72+
content: "There was an error running Doctrine on MariaDB:${{ matrix.mariadb-version }} - URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}."

0 commit comments

Comments
 (0)