From 1fbf2bbdcfc423be7a7ad254c9a4ca4a88e4928c Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Fri, 26 Apr 2024 11:24:51 +0200 Subject: [PATCH 1/3] Add Databases nightly workflow --- .github/workflows/databases-nightly.yml | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/databases-nightly.yml diff --git a/.github/workflows/databases-nightly.yml b/.github/workflows/databases-nightly.yml new file mode 100644 index 000000000000..efdb09d74ada --- /dev/null +++ b/.github/workflows/databases-nightly.yml @@ -0,0 +1,53 @@ +name: databases-nightly + +on: + pull_request: # TODO: Remove before merge + schedule: + - cron: '0 0 * * *' + +jobs: + + mariadb: + runs-on: ubuntu-22.04 + + 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" + + - 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 From 45c0f891300e0ddfa30ed4972557427ab0673697 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Thu, 2 May 2024 08:12:51 +0200 Subject: [PATCH 2/3] Fix indention --- .github/workflows/databases-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/databases-nightly.yml b/.github/workflows/databases-nightly.yml index efdb09d74ada..609c2e54c5cb 100644 --- a/.github/workflows/databases-nightly.yml +++ b/.github/workflows/databases-nightly.yml @@ -7,7 +7,7 @@ on: jobs: - mariadb: + mariadb: runs-on: ubuntu-22.04 services: From b0748c08a9eaac5b82496e69110bc7b955005881 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Thu, 2 May 2024 11:03:34 +0200 Subject: [PATCH 3/3] Continue on error Co-authored-by: Mior Muhammad Zaki --- .github/workflows/databases-nightly.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/databases-nightly.yml b/.github/workflows/databases-nightly.yml index 609c2e54c5cb..4b39bcc9018a 100644 --- a/.github/workflows/databases-nightly.yml +++ b/.github/workflows/databases-nightly.yml @@ -9,6 +9,7 @@ jobs: mariadb: runs-on: ubuntu-22.04 + continue-on-error: true services: mariadb: