Skip to content

Commit bc4b61c

Browse files
committed
ci: refactor matrix names
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 858d7bd commit bc4b61c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php-versions: ["8.1", "8.2", "8.3", "8.4"]
15-
nextcloud-versions: ["stable32", "stable31", "stable30", "stable29"]
16-
name: Nextcloud ${{ matrix.nextcloud-versions }} php${{ matrix.php-versions }} unit tests
14+
php-version: ["8.1", "8.2", "8.3", "8.4"]
15+
nextcloud-version: ["stable32", "stable31", "stable30", "stable29"]
16+
name: Nextcloud ${{ matrix.nextcloud-version }} php${{ matrix.php-version }} unit tests
1717
steps:
18-
- name: Set up php${{ matrix.php-versions }}
18+
- name: Set up php${{ matrix.php-version }}
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: ${{ matrix.php-versions }}
21+
php-version: ${{ matrix.php-version }}
2222
extensions: ctype,curl,dom,gd,iconv,intl,json,mbstring,openssl,posix,sqlite,xml,zip,gmp
2323
coverage: xdebug
2424
- name: Checkout Nextcloud
25-
run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-versions }} nextcloud
25+
run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-version }} nextcloud
2626
# - name: Patch version check for nightly PHP
27-
# if: ${{ matrix.php-versions == '8.2' }}
27+
# if: ${{ matrix.php-version == '8.2' }}
2828
# run: echo "<?php" > nextcloud/lib/versioncheck.php
2929
- name: Install Nextcloud
3030
run: php -f nextcloud/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
@@ -40,12 +40,12 @@ jobs:
4040
- name: Run tests
4141
working-directory: nextcloud/apps/qownnotesapi
4242
run: composer test-coverage
43-
if: ${{ matrix.php-versions == '8.3' }}
43+
if: ${{ matrix.php-version == '8.3' }}
4444
env:
4545
XDEBUG_MODE: coverage
4646
# - name: Report coverage
4747
# uses: codecov/[email protected]
48-
# if: ${{ always() && matrix.php-versions == '8.0' }}
48+
# if: ${{ always() && matrix.php-version == '8.0' }}
4949
# with:
5050
# file: ./nextcloud/apps/qownnotesapi/tests/clover.unit.xml
5151
# flags: unittests

0 commit comments

Comments
 (0)