summaryrefslogtreecommitdiffstats
path: root/.github/workflows/phpunit-pgsql.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/phpunit-pgsql.yml')
-rw-r--r--.github/workflows/phpunit-pgsql.yml30
1 files changed, 20 insertions, 10 deletions
diff --git a/.github/workflows/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml
index d7b272b03..7111f3017 100644
--- a/.github/workflows/phpunit-pgsql.yml
+++ b/.github/workflows/phpunit-pgsql.yml
@@ -5,10 +5,7 @@
name: PHPUnit pgsql
-on:
- pull_request:
- schedule:
- - cron: "5 2 * * *"
+on: pull_request
permissions:
contents: read
@@ -18,6 +15,19 @@ concurrency:
cancel-in-progress: true
jobs:
+ matrix:
+ runs-on: ubuntu-latest-low
+ outputs:
+ php-max: ${{ steps.versions.outputs.php-max-list }}
+ server-max: ${{ steps.versions.outputs.branches-max-list }}
+ steps:
+ - name: Checkout app
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+
+ - name: Get version matrix
+ id: versions
+ uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
+
changes:
runs-on: ubuntu-latest-low
@@ -25,7 +35,7 @@ jobs:
src: ${{ steps.changes.outputs.src}}
steps:
- - uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
+ - uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
id: changes
continue-on-error: true
with:
@@ -45,13 +55,13 @@ jobs:
phpunit-pgsql:
runs-on: ubuntu-latest
- needs: changes
+ needs: [changes, matrix]
if: needs.changes.outputs.src != 'false'
strategy:
matrix:
- php-versions: ['8.2']
- server-versions: ['master']
+ php-versions: ${{ fromJson(needs.matrix.outputs.php-max) }}
+ server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
services:
postgres:
@@ -83,7 +93,7 @@ jobs:
path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }}
- uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
+ uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
with:
php-version: ${{ matrix.php-versions }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -95,7 +105,7 @@ jobs:
- name: Check composer file existence
id: check_composer
- uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
+ uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
with:
files: apps/${{ env.APP_NAME }}/composer.json