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
112 changes: 0 additions & 112 deletions .github/workflows/benchmark.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- "18.1"

env:
POSTGRES_URI: 'pdo-pgsql://postgres:postgres@localhost:5432/eventstore?charset=utf8'
POSTGRES_URI: 'pgsql:host=localhost;port=5432;dbname=eventstore;user=postgres;password=postgres'

steps:
- name: "Checkout"
Expand All @@ -56,7 +56,7 @@ jobs:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_pgsql
extensions: pdo_pgsql,mongodb

- uses: ramsey/composer-install@3.1.1
with:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: mongodb
extensions: pdo_pgsql,mongodb

- uses: ramsey/composer-install@3.1.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation-tests-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"

Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,17 @@ jobs:
- "lowest"
- "highest"
php-version:
- "8.2"
- "8.3"
- "8.4"
operating-system:
- "ubuntu-latest"
include:
- dependencies: "locked"
php-version: "8.4"
operating-system: "ubuntu-latest"
- dependencies: "locked"
php-version: "8.4"
operating-system: "windows-latest"
- dependencies: "lowest"
php-version: "8.5"
operating-system: "ubuntu-latest"
composer-options: "--ignore-platform-reqs"
- dependencies: "highest"
- dependencies: "locked"
php-version: "8.5"
operating-system: "ubuntu-latest"
composer-options: "--ignore-platform-reqs"
operating-system: "windows-latest"
steps:
- name: "Checkout"
uses: actions/checkout@v6
Expand All @@ -51,6 +42,7 @@ jobs:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_pgsql,mongodb

- uses: ramsey/composer-install@3.1.1
with:
Expand Down
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,23 @@ phpstan-baseline: vendor
vendor/bin/phpstan analyse --generate-baseline --memory-limit=-1

.PHONY: phpunit
phpunit: vendor ## run phpunit tests
MONGODB_URI="mongodb://localhost:27017" POSTGRES_URI="pgsql:host=localhost;port=5432;dbname=eventstore;user=postgres;password=postgres" XDEBUG_MODE=coverage vendor/bin/phpunit
phpunit: vendor phpunit-unit phpunit-integration ## run phpunit tests

.PHONY: phpunit-integration
phpunit-integration: vendor ## run phpunit integration tests
MONGODB_URI="mongodb://localhost:27017" POSTGRES_URI="pgsql:host=localhost;port=5432;dbname=eventstore;user=postgres;password=postgres" vendor/bin/phpunit --testsuite=integration

.PHONY: phpunit-integration-postgres
phpunit-integration-postgres: vendor ## run phpunit integration tests on postgres
POSTGRES_URI="pgsql:host=localhost;port=5432;dbname=eventstore;user=postgres;password=postgres" vendor/bin/phpunit --testsuite=integration

.PHONY: phpunit-integration-mongodb
phpunit-integration-mongodb: vendor ## run phpunit integration tests on mysql
MONGODB_URI="mongodb://localhost:27017" vendor/bin/phpunit --testsuite=integration

.PHONY: phpunit-unit
phpunit-unit: vendor ## run phpunit unit tests
XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite=unit

.PHONY: infection
infection: vendor ## run infection
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
],
"require": {
"php": "~8.3.0 || ~8.4.0 || ~8.5.0" ,
"patchlevel/hydrator": "dev-add-methods-on-normalizers as 1.23.0"
"patchlevel/hydrator": "^1.23.0"
},
"require-dev": {
"ext-mongodb": "^2.1",
"infection/infection": "^0.31.9",
"mongodb/mongodb": "^2.1",
"patchlevel/coding-standard": "^1.3.0",
"patchlevel/rango": "1.0.0-alpha.3",
"patchlevel/rango": "1.0.0-alpha.4",
"phpat/phpat": "^0.12.0",
"phpbench/phpbench": "^1.2.15",
"phpstan/phpstan": "^2.1.32",
Expand Down
36 changes: 14 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions infection.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"source": {
"directories": [
"src"
]
},
"staticAnalysisTool": "phpstan",
"staticAnalysisToolOptions": "--memory-limit=-1",
"logs": {
"text": "infection.log",
"html": "infection.html",
"stryker": {
"report": "/[0-9]+.[0-9]+.x/"
}
},
"mutators": {
"@default": true
},
"minMsi": 72,
"minCoveredMsi": 87,
"testFrameworkOptions": "--testsuite=unit"
}
Loading
Loading