-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mariadb: add nightly workflow to facilitate mariadb "nightlies" (#6435)
<!-- Fill in the relevant information below to help triage your pull request. --> | Q | A |------------- | ----------- | Type | improvement | Fixed issues | #6433 #### Summary Nightly cron scheduled alternate to #6433.
- Loading branch information
1 parent
b741182
commit 0a332a3
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: "Continuous Integration (Nightly)" | ||
|
||
on: | ||
schedule: | ||
- cron: "12 3 * * *" | ||
|
||
env: | ||
fail-fast: true | ||
|
||
jobs: | ||
phpunit-mariadb: | ||
name: "PHPUnit with MariaDB" | ||
runs-on: "ubuntu-24.04" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.3" | ||
mariadb-version: | ||
- "earliest" | ||
- "verylatest" | ||
extension: | ||
- "mysqli" | ||
- "pdo_mysql" | ||
|
||
services: | ||
mariadb: | ||
image: "quay.io/mariadb-foundation/mariadb-devel:${{ matrix.mariadb-version }}" | ||
env: | ||
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes | ||
MARIADB_DATABASE: "doctrine_tests" | ||
|
||
options: >- | ||
--health-cmd "healthcheck.sh --connect --innodb_initialized" | ||
ports: | ||
- "3306:3306" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: "pcov" | ||
ini-values: "zend.assertions=1" | ||
extensions: "${{ matrix.extension }}" | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v3" | ||
with: | ||
composer-options: "--ignore-platform-req=php+" | ||
|
||
- name: "Run PHPUnit" | ||
run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml" | ||
|
||
- name: Tell the MariaDB Folks if it failed | ||
if: ${{ failure() }} | ||
uses: zulip/github-actions-zulip/send-message@v1 | ||
with: | ||
api-key: ${{ secrets.MARIADB_ZULIP_API_KEY }} | ||
email: "doctrine-bot@mariadb.zulipchat.com" | ||
organization-url: "https://mariadb.zulipchat.com" | ||
to: "Buildbot" | ||
type: "stream" | ||
topic: "CI - Doctrine/DBAL" | ||
content: "There was an error running Doctrine on MariaDB:${{ matrix.mariadb-version }} - URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}." |