Skip to content

Commit e9632ef

Browse files
authored
Merge branch '5.3-dev' into ghactions-codestyle
2 parents 0c85e66 + 108662f commit e9632ef

File tree

11 files changed

+75
-1541
lines changed

11 files changed

+75
-1541
lines changed

.appveyor.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ libraries/src/Installer/* @rdeutz
1616
libraries/src/Updater/* @rdeutz
1717

1818
# Automated Testing
19+
.github/workflows/ci.yml @rdeutz @hackwar @laoneo
1920
tests/* @hackwar @laoneo
2021
tests/Unit/* @rdeutz @laoneo
21-
.appveyor.yml @rdeutz @hackwar @laoneo
2222
.drone.yml @rdeutz @hackwar @laoneo
2323
phpunit.xml.dist @rdeutz @hackwar @laoneo
2424
phpunit-pgsql.xml.dist @rdeutz @hackwar @laoneo
25+
phpunit-windows.xml.dist @rdeutz @hackwar @laoneo
2526

2627
# Workflow
2728
administrator/components/com_workflow/* @bembelimen @hleithner
@@ -51,6 +52,7 @@ installation/tmpl/* @chmst
5152

5253
# Translation GitHub Actions
5354
.github/workflows/create-translation-pull-request-v4.yml @hleithner
55+
.github/workflows/create-translation-pull-request-v5.yml @hleithner
5456

5557
# Libraries
5658
libraries/src/* @laoneo

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,67 @@ jobs:
173173
POSTGRES_PASSWORD: joomla_ut
174174
POSTGRES_DB: test_joomla
175175

176+
tests-unit-windows:
177+
name: Run Unit tests (Windows)
178+
runs-on: windows-latest
179+
needs: [code-style-php]
180+
strategy:
181+
matrix:
182+
php_version: ['8.1', '8.2', '8.3', '8.4']
183+
steps:
184+
- uses: actions/checkout@v4
185+
- uses: actions/cache/restore@v4
186+
id: cache-php-windows
187+
with:
188+
path: libraries/vendor
189+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
190+
- name: Setup PHP
191+
uses: shivammathur/setup-php@v2
192+
with:
193+
php-version: ${{ matrix.php_version }}
194+
extensions: openssl, mbstring, fileinfo, gd, gmp, pgsql, mysql, mysqli, curl, opcache, ldap
195+
ini-values: post_max_size=256M, date.timezone="UTC"
196+
- name: Install Composer dependencies
197+
if: steps.cache-php-windows.outputs.cache-hit != 'true'
198+
run: composer install --no-progress --ignore-platform-reqs
199+
- name: Run Unit tests
200+
run: php libraries/vendor/bin/phpunit --testsuite Unit
201+
202+
tests-integration-windows:
203+
name: Run integration tests (Windows)
204+
runs-on: windows-latest
205+
needs: [code-style-php]
206+
strategy:
207+
matrix:
208+
php_version: ['8.1', '8.2', '8.3', '8.4']
209+
steps:
210+
- uses: actions/checkout@v4
211+
- uses: actions/cache/restore@v4
212+
with:
213+
path: libraries/vendor
214+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
215+
- uses: shogo82148/actions-setup-mysql@v1
216+
with:
217+
mysql-version: "mariadb-10.4"
218+
root-password: "joomla_ut"
219+
user: "joomla_ut"
220+
password: "joomla_ut"
221+
- name: Setup PHP
222+
uses: shivammathur/setup-php@v2
223+
with:
224+
php-version: ${{ matrix.php_version }}
225+
extensions: openssl, mbstring, fileinfo, gd, gmp, pgsql, mysql, mysqli, curl, opcache, ldap
226+
ini-values: post_max_size=256M, date.timezone="UTC"
227+
- name: Install Composer dependencies
228+
if: steps.cache-php-windows.outputs.cache-hit != 'true'
229+
run: |
230+
composer install --no-progress --ignore-platform-reqs
231+
mysql -uroot -pjoomla_ut -e 'CREATE DATABASE IF NOT EXISTS test_joomla;'
232+
- name: Run Integration tests
233+
run: |
234+
sleep 3
235+
php libraries/vendor/bin/phpunit --testsuite Integration --configuration phpunit-windows.xml.dist
236+
176237
tests-system-prepare:
177238
name: Prepare system tests
178239
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)