Skip to content

Commit

Permalink
Generate the sqlite phpunit matrix based on supported server versions
Browse files Browse the repository at this point in the history
Automatically run sqlite tests against all server versions listed as supported in `info.xml` and the minimum supported php version for the server version.

Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 authored Nov 2, 2023
1 parent c9d741a commit 5a94435
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions workflow-templates/phpunit-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,25 @@ jobs:
- 'composer.json'
- 'composer.lock'
matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- name: Checkout app
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Get version matrix
id: versions
uses: icewind1991/nextcloud-version-matrix@a82a7d40fdca32fd814ede3b40b0f657147a1748 # master

phpunit-sqlite:
runs-on: ubuntu-latest

needs: changes
needs: [changes, matrix]
if: needs.changes.outputs.src != 'false'

strategy:
matrix:
php-versions: ['8.2']
server-versions: ['master']
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}

steps:
- name: Set app env
Expand Down

0 comments on commit 5a94435

Please sign in to comment.