From edd34a3bbbb92da88c26742b451b18933af21811 Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Fri, 26 Jun 2026 09:01:27 +0200 Subject: [PATCH 1/8] remove caching action as it does not work consistently --- .github/workflows/tests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b398057..492fca7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,7 +61,7 @@ on: php artisan migrate:fresh --env=ci php artisan test --env=ci --no-coverage LINUX_PACKAGES: - description: A comma separated list of linux packages which should be installed. + description: A space separated list of linux packages which should be installed. required: false type: string @@ -99,11 +99,9 @@ jobs: - name: Install additional packages if: ${{ inputs.LINUX_PACKAGES != '' }} - # https://github.com/awalsh128/cache-apt-pkgs-action - uses: awalsh128/cache-apt-pkgs-action@latest - with: - packages: ${{ inputs.LINUX_PACKAGES }} - version: ${{ inputs.PHP_VERSION }} + run: | + sudo apt update + sudo apt install -y --no-install-recommends ${{ inputs.LINUX_PACKAGES }} # The GitHub runner PostgreSQL version is outdated, and will not work with databases using the latest PostgreSQL version. - name: Update PostgreSQL From 0e26f320f22f1d922255a8dcb324fb53b70dc7cf Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Fri, 26 Jun 2026 10:23:09 +0200 Subject: [PATCH 2/8] use brew to install latest versions of packages --- .github/workflows/tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 492fca7..d01be49 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,8 +60,8 @@ on: default: | php artisan migrate:fresh --env=ci php artisan test --env=ci --no-coverage - LINUX_PACKAGES: - description: A space separated list of linux packages which should be installed. + BREW_FORMULAS: + description: A space separated list of brew formulas which should be installed. required: false type: string @@ -98,10 +98,11 @@ jobs: coverage: none - name: Install additional packages - if: ${{ inputs.LINUX_PACKAGES != '' }} + if: ${{ inputs.BREW_FORMULAS != '' }} + # Brew is available in the GitHub Runner Ubuntu image, but not in the PATH. run: | - sudo apt update - sudo apt install -y --no-install-recommends ${{ inputs.LINUX_PACKAGES }} + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + brew install ${{ inputs.LINUX_PACKAGES }} # The GitHub runner PostgreSQL version is outdated, and will not work with databases using the latest PostgreSQL version. - name: Update PostgreSQL From 67cfd4d40bf1c4faebd4be49fa157b52a29dc70d Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Fri, 26 Jun 2026 11:18:44 +0200 Subject: [PATCH 3/8] use correct input --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d01be49..2e06282 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -102,7 +102,7 @@ jobs: # Brew is available in the GitHub Runner Ubuntu image, but not in the PATH. run: | eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - brew install ${{ inputs.LINUX_PACKAGES }} + brew install ${{ inputs.BREW_FORMULAS }} # The GitHub runner PostgreSQL version is outdated, and will not work with databases using the latest PostgreSQL version. - name: Update PostgreSQL From 0d793861a27c3a1d7cc722989e012694f7f08340 Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Fri, 26 Jun 2026 11:53:36 +0200 Subject: [PATCH 4/8] update and upgrade brew packages --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2e06282..c770747 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -101,7 +101,9 @@ jobs: if: ${{ inputs.BREW_FORMULAS != '' }} # Brew is available in the GitHub Runner Ubuntu image, but not in the PATH. run: | - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + brew update + brew upgrade brew install ${{ inputs.BREW_FORMULAS }} # The GitHub runner PostgreSQL version is outdated, and will not work with databases using the latest PostgreSQL version. From 3bc3187c6c5eaac3997e4de398b0f76516e7a740 Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Tue, 21 Jul 2026 13:34:08 +0200 Subject: [PATCH 5/8] add brew install path to github path for subsequent steps --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c770747..9808900 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,6 +105,8 @@ jobs: brew update brew upgrade brew install ${{ inputs.BREW_FORMULAS }} + # Add brew package install path to the PATH for subsequent steps. + echo "/home/linuxbrew/.linuxbrew/bin" >> "$GITHUB_PATH" # The GitHub runner PostgreSQL version is outdated, and will not work with databases using the latest PostgreSQL version. - name: Update PostgreSQL From 9fdf0f98c74d8edecc9a7c86e0fb92c9557f9e2c Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Tue, 21 Jul 2026 13:36:45 +0200 Subject: [PATCH 6/8] omit updating and upgrade brew packages as brew should be up to date --- .github/workflows/tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9808900..c624ee6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -102,8 +102,6 @@ jobs: # Brew is available in the GitHub Runner Ubuntu image, but not in the PATH. run: | eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - brew update - brew upgrade brew install ${{ inputs.BREW_FORMULAS }} # Add brew package install path to the PATH for subsequent steps. echo "/home/linuxbrew/.linuxbrew/bin" >> "$GITHUB_PATH" From 76e7ae3abcfb143557cecd52e1faa013291d2dfe Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Tue, 21 Jul 2026 13:45:23 +0200 Subject: [PATCH 7/8] update actions --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c624ee6..3b7e21a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -86,7 +86,7 @@ jobs: steps: - name: Checkout code # https://github.com/actions/checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup PHP # https://github.com/shivammathur/setup-php @@ -122,7 +122,7 @@ jobs: - name: Cache composer dependencies # https://github.com/actions/cache - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ${{ steps.get-cache-dir.outputs.directory }} key: dependencies-laravel-${{ inputs.LARAVEL_VERSION }}-php-${{ inputs.PHP_VERSION }}-composer-${{ hashFiles('composer.json') }} From 5e51e46148de8c77ab11a8137dde6072dd63450a Mon Sep 17 00:00:00 2001 From: Marco Szulik Date: Thu, 23 Jul 2026 10:44:50 +0200 Subject: [PATCH 8/8] update examples --- examples/tests-multiple-db-images.yml | 4 ++-- examples/tests.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/tests-multiple-db-images.yml b/examples/tests-multiple-db-images.yml index 3d5f1e2..6143b71 100644 --- a/examples/tests-multiple-db-images.yml +++ b/examples/tests-multiple-db-images.yml @@ -51,10 +51,10 @@ jobs: DATABASE_PORT: 5432 DATABASE_USERNAME: postgres DATABASE_CONNECTION: pgsql -# DATABASE_HOST: 127.0.0.1 + DATABASE_HOST: localhost # For some reason postgres runs extremely slow when not using localhost, while mysql and mariadb don't accept localhost DATABASE_OPTIONS: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3" PHP_VERSION: ${{ matrix.php }} LARAVEL_VERSION: ${{ matrix.laravel }} DEPENDENCY_VERSION: ${{ matrix.dependency-version }} # TEST_COMMANDS: vendor/bin/phpunit -c phpunit-ci.xml.dist -# LINUX_PACKAGES: imagemagick jpegoptim optipng pngquant gifsicle webp ffmpeg +# BREW_FORMULAS: ghostscript jpegoptim optipng pngquant gifsicle webp ffmpeg mariadb diff --git a/examples/tests.yml b/examples/tests.yml index 52ee03e..1f5dbc8 100644 --- a/examples/tests.yml +++ b/examples/tests.yml @@ -16,8 +16,8 @@ jobs: strategy: fail-fast: true matrix: - php: [ 8.2, 8.3 ] - laravel: [ 11.* ] + php: [ 8.4, 8.5 ] + laravel: [ 13.* ] dependency-version: [ prefer-stable ] with: DATABASE_NAME: myproject_test @@ -25,4 +25,4 @@ jobs: LARAVEL_VERSION: ${{ matrix.laravel }} DEPENDENCY_VERSION: ${{ matrix.dependency-version }} # TEST_COMMANDS: vendor/bin/phpunit -c phpunit-ci.xml.dist -# LINUX_PACKAGES: imagemagick jpegoptim optipng pngquant gifsicle webp ffmpeg +# BREW_FORMULAS: ghostscript jpegoptim optipng pngquant gifsicle webp ffmpeg mariadb