3
3
# https://github.com/nextcloud/.github
4
4
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5
5
6
- name : PHPUnit mysql
6
+ name : PHPUnit MySQL
7
7
8
- on :
9
- pull_request :
10
- push :
11
- branches :
12
- - main
13
- - master
14
- - stable*
8
+ on : pull_request
15
9
16
10
permissions :
17
11
contents : read
@@ -55,10 +49,13 @@ jobs:
55
49
matrix :
56
50
php-versions : ['8.0', '8.1', '8.2', '8.3']
57
51
server-versions : ['master']
52
+ mysql-versions : ['8.1']
53
+
54
+ name : MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
58
55
59
56
services :
60
57
mysql :
61
- image : ghcr.io/nextcloud/continuous-integration-mariadb-10.6 :latest
58
+ image : ghcr.io/nextcloud/continuous-integration-mysql-${{ matrix.mysql-versions }} :latest
62
59
ports :
63
60
- 4444:3306/tcp
64
61
env :
@@ -72,19 +69,19 @@ jobs:
72
69
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
73
70
74
71
- name : Checkout server
75
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
72
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
76
73
with :
77
74
submodules : true
78
75
repository : nextcloud/server
79
76
ref : ${{ matrix.server-versions }}
80
77
81
78
- name : Checkout app
82
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
79
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
83
80
with :
84
81
path : apps/${{ env.APP_NAME }}
85
82
86
83
- name : Set up php ${{ matrix.php-versions }}
87
- uses : shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
84
+ uses : shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
88
85
with :
89
86
php-version : ${{ matrix.php-versions }}
90
87
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
0 commit comments