Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/auto_assign_owner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Auto assign owner when opening PRs
on:
pull_request:
types: [ opened ]
jobs:
auto-assign-owner:
runs-on: ubuntu-latest
steps:
- name: Auto assign owner
uses: toshimaru/auto-author-assign@v3.0.2
25 changes: 14 additions & 11 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand All @@ -30,7 +30,7 @@ jobs:
tools: composer-dependency-analyser, composer-normalize, composer-require-checker, cs2pr

- name: Install Composer Dependencies
uses: ramsey/composer-install@v3
uses: ramsey/composer-install@v4
with:
dependency-versions: "highest"
composer-options: "--prefer-stable --optimize-autoloader --no-progress --no-interaction"
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand All @@ -146,7 +146,7 @@ jobs:
extensions: filter

- name: Install Composer Dependencies
uses: ramsey/composer-install@v3
uses: ramsey/composer-install@v4
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: "--prefer-stable --optimize-autoloader --no-progress --no-interaction"
Expand All @@ -171,12 +171,15 @@ jobs:
DYNAMODB_URL: http://localhost:4566
DATABASE_SERVER_VERSION: ${{ matrix.mysql-version }}
run: |
vendor/bin/phpunit --colors=always --testdox \
--log-junit tests/.results/tests-junit.xml \
--coverage-clover tests/.results/tests-clover.xml
vendor/bin/phpunit \
--colors=always \
--testdox \
--testdox-summary \
--coverage-clover tests/.results/tests-clover.xml \
--log-junit tests/.results/tests-junit.xml

- name: Upload coverage files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ github.job }}-${{ matrix.php-version }}-${{ matrix.dependencies }}-coverage
include-hidden-files: true
Expand All @@ -187,11 +190,11 @@ jobs:
name: Code Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
name: tests-8.4-highest-coverage
path: tests/.results/
Expand All @@ -203,7 +206,7 @@ jobs:
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' tests-junit.xml

- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v7.0.0
uses: SonarSource/sonarqube-scan-action@v8.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
24 changes: 16 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"opensearch-project/opensearch-php": "^2.5",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^12.5",
"phpunit/phpunit": "^13.1",
"psr/cache": "^2.0",
"rector/rector": "^2.3",
"shipmonk/composer-dependency-analyser": "^1.8",
Expand Down Expand Up @@ -88,29 +88,36 @@
"integration": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"phpunit --log-events-text phpunit.log --no-coverage --no-logging --no-progress --testsuite Integration"
"phpunit --testsuite Integration --testdox --testdox-summary --no-coverage --no-logging"
],
"integration-coverage": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"XDEBUG_MODE=coverage phpunit --log-events-text phpunit.log --no-progress --testsuite Integration --log-junit tests/.results/integration-junit.xml --coverage-clover tests/.results/coverage-integration.xml --coverage-html tests/.results/Integration"
"XDEBUG_MODE=coverage phpunit --testsuite Integration --testdox --testdox-summary --log-junit tests/.results/integration-junit.xml --coverage-clover tests/.results/coverage-integration --coverage-html tests/.results/Integration/"
],
"phpstan": "phpstan",
"rector": "rector process --dry-run --config rector-ci.php src/ tests/",
"rector-fix": "rector process --config rector-ci.php src/ tests/",
"sniffer": "phpcs",
"sniffer": [
"rm -rf tests/App/var/*",
"phpcs"
],
"sniffer-fix": [
"rm -rf tests/App/var/*",
"phpcbf"
],
"test": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"phpunit --log-events-text phpunit.log --no-coverage --no-logging --no-progress --testsuite Unit,Integration"
"phpunit --testsuite Unit,Integration --testdox --testdox-summary --no-coverage --no-logging"
],
"test-coverage": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"XDEBUG_MODE=coverage phpunit --log-events-text phpunit.log --no-progress --testsuite Unit,Integration --log-junit tests/.results/tests-junit.xml --coverage-clover tests/.results/tests-clover.xml --coverage-html tests/.results/html"
"XDEBUG_MODE=coverage phpunit --testsuite Unit,Integration --testdox --testdox-summary --log-junit tests/.results/tests-junit.xml --coverage-clover tests/.results/tests-clover.xml --coverage-html tests/.results/html/"
],
"unit": "phpunit --log-events-text phpunit.log --no-coverage --no-logging --no-progress --testsuite Unit",
"unit-coverage": "XDEBUG_MODE=coverage phpunit --log-events-text phpunit.log --no-progress --testsuite Unit --log-junit tests/.results/unit-junit.xml --coverage-clover tests/.results/coverage-unit.xml --coverage-html tests/.results/Unit"
"unit": "phpunit --testsuite Unit --testdox --testdox-summary --no-coverage --no-logging",
"unit-coverage": "XDEBUG_MODE=coverage phpunit --testsuite Unit --testdox --testdox-summary --log-junit tests/.results/unit-junit.xml --coverage-clover tests/.results/coverage-unit.xml --coverage-html tests/.results/Unit/"
},
"scripts-descriptions": {
"cs": "Run PHP CS Fixer with kununu code standards",
Expand All @@ -120,6 +127,7 @@
"rector": "Run Rector in dry-run mode with CI rules",
"rector-fix": "Run Rector in fix mode with CI rules",
"sniffer": "Run PHP_CodeSniffer",
"sniffer-fix": "Run PHP_CodeSniffer in fix mode",
"test": "Run all tests",
"test-coverage": "Run all tests with coverage report",
"unit": "Run all unit tests",
Expand Down
15 changes: 2 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.phpunit.de/en/12.5/ -->
<!-- https://docs.phpunit.de/en/13.1/ -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/13.1/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
beStrictAboutChangesToGlobalState="true"
displayDetailsOnAllIssues="true"
testdoxSummary="true"
testdox="true"
cacheDirectory=".phpunit.cache">
<coverage>
<report>
<clover outputFile="tests/.results/tests-clover.xml"/>
<html outputDirectory="tests/.results/html/"/>
</report>
</coverage>
<testsuites>
<testsuite name="Integration">
<directory>tests/Integration</directory>
Expand All @@ -23,9 +15,6 @@
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="tests/.results/tests-junit.xml"/>
</logging>
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
Expand Down