diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
new file mode 100644
index 0000000..dcd638d
--- /dev/null
+++ b/.github/dependabot.yaml
@@ -0,0 +1,7 @@
+version: 2
+
+updates:
+ - package-ecosystem: 'github-actions'
+ directory: '/'
+ schedule:
+ interval: 'daily'
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index b8456d1..24c9b93 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -11,12 +11,7 @@ jobs:
with:
php-version: 8.0
coverage: none
- - uses: actions/cache@v2
- with:
- path: vendor
- key: php-8.0-vendor-${{ hashFiles('**/composer.json') }}
- restore-keys: php-8.0-vendor-
- - run: composer install --no-interaction --no-ansi --no-suggest
+ - uses: ramsey/composer-install@v2
- id: set-php-versions
run: echo "::set-output name=php-versions::$(bin/devtools list:php-versions)"
- id: set-tools
@@ -38,11 +33,6 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- - uses: actions/cache@v2
- with:
- path: vendor
- key: php-${{ matrix.php-version }}-vendor-${{ hashFiles('**/composer.json') }}
- restore-keys: php-${{ matrix.php-version }}-vendor-
- - run: composer install --no-interaction --no-ansi --no-suggest
+ - uses: ramsey/composer-install@v2
- run: bin/devtools ${{ matrix.tool }}
diff --git a/.gitignore b/.gitignore
index 8db5c68..0c3b072 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
.phpcs-cache
.phpunit.result.cache
composer.lock
+infection-log.txt
vendor
diff --git a/composer.json b/composer.json
index 1e35c57..d7d4b3d 100644
--- a/composer.json
+++ b/composer.json
@@ -13,16 +13,23 @@
"MyOnlineStore\\DevTools\\Tests\\": "tests/"
}
},
+ "config": {
+ "allow-plugins": {
+ "dealerdirect/phpcodesniffer-composer-installer": true,
+ "infection/extension-installer": true
+ }
+ },
"require": {
"php": "^7.4 || ^8.0",
- "symfony/console": "^5.3",
- "composer/semver": "^3.2",
- "symfony/process": "^5.3"
+ "symfony/console": "^5.4 || ^6.0",
+ "composer/semver": "^3.3",
+ "symfony/process": "^5.4 || ^6.0",
+ "roave/infection-static-analysis-plugin": "^1.18"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"myonlinestore/coding-standard": "^3.1",
- "vimeo/psalm": "^4.10",
+ "vimeo/psalm": "^4.22",
"phpunit/phpunit": "^8.5 || ^9.5"
},
"bin": [
diff --git a/infection.json.dist b/infection.json.dist
new file mode 100644
index 0000000..8520ba8
--- /dev/null
+++ b/infection.json.dist
@@ -0,0 +1,11 @@
+{
+ "timeout": 5,
+ "source": {
+ "directories": [
+ "src"
+ ]
+ },
+ "logs": {
+ "text": "infection-log.txt"
+ }
+}
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 46a66e3..d773b99 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -10,6 +10,7 @@
src
+ tests
diff --git a/psalm.xml.dist b/psalm.xml.dist
index eb94feb..40cebd0 100644
--- a/psalm.xml.dist
+++ b/psalm.xml.dist
@@ -2,7 +2,6 @@