Skip to content

Commit 7951e5a

Browse files
Update phpunit-mariadb.yml
Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
1 parent 348b2a5 commit 7951e5a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/phpunit-mariadb.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88

99
name: PHPUnit MariaDB
1010

11-
on:
12-
pull_request:
13-
push:
14-
branches:
15-
- main
16-
- master
17-
- stable*
11+
on: pull_request
1812

1913
permissions:
2014
contents: read
@@ -32,6 +26,8 @@ jobs:
3226
steps:
3327
- name: Checkout app
3428
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
persist-credentials: false
3531

3632
- name: Get version matrix
3733
id: versions
@@ -80,29 +76,32 @@ jobs:
8076

8177
services:
8278
mariadb:
83-
image: ghcr.io/nextcloud/continuous-integration-mariadb-${{ matrix.mariadb-versions }}:latest
79+
image: ghcr.io/nextcloud/continuous-integration-mariadb-${{ matrix.mariadb-versions }}:latest # zizmor: ignore[unpinned-images]
8480
ports:
8581
- 4444:3306/tcp
8682
env:
87-
MYSQL_ROOT_PASSWORD: rootpassword
88-
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 5
83+
MARIADB_ROOT_PASSWORD: rootpassword
84+
options: --health-cmd="mariadb-admin ping" --health-interval 5s --health-timeout 2s --health-retries 5
8985

9086
steps:
9187
- name: Set app env
88+
if: ${{ env.APP_NAME == '' }}
9289
run: |
9390
# Split and keep last
9491
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
9592
9693
- name: Checkout server
9794
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9895
with:
96+
persist-credentials: false
9997
submodules: true
10098
repository: nextcloud/server
10199
ref: ${{ matrix.server-versions }}
102100

103101
- name: Checkout app
104102
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105103
with:
104+
persist-credentials: false
106105
path: apps/${{ env.APP_NAME }}
107106

108107
- name: Set up php ${{ matrix.php-versions }}
@@ -113,6 +112,8 @@ jobs:
113112
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
114113
coverage: none
115114
ini-file: development
115+
# Temporary workaround for missing pcntl_* in PHP 8.3
116+
ini-values: disable_functions=
116117
env:
117118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118119

0 commit comments

Comments
 (0)