Skip to content

Commit 767e903

Browse files
authored
Merge pull request #76: Maintenance
2 parents 37db9dc + 8b6e472 commit 767e903

File tree

69 files changed

+1061
-612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1061
-612
lines changed

.editorconfig

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# editorconfig.org
2-
31
root = true
42

53
[*]
@@ -10,5 +8,14 @@ indent_style = space
108
indent_size = 4
119
trim_trailing_whitespace = true
1210

13-
[*.json]
11+
[*.{yml, yaml, sh, conf, neon*}]
1412
indent_size = 2
13+
14+
[*.http]
15+
end_of_line = crlf
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[Makefile]
21+
indent_style = tab

.gitattributes

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
/.github export-ignore
2-
/.gitattributes export-ignore
3-
/.gitignore export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/tests export-ignore
6-
/.editorconfig export-ignore
7-
/.php_cs.dist.php export-ignore
8-
/psalm.xml export-ignore
9-
/psalm.xml.dist export-ignore
10-
/UPGRADING.md export-ignore
1+
/.* export-ignore
2+
/tests export-ignore
3+
/*.xml export-ignore
4+
/*.yml export-ignore
5+
/*.lock export-ignore
6+
/*.dist export-ignore
7+
Makefile export-ignore

.github/workflows/cs-fix.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- '*'
7+
8+
name: Fix Code Style
9+
10+
jobs:
11+
cs-fix:
12+
permissions:
13+
contents: write
14+
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master
15+
16+
...

.github/workflows/psalm.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
pull_request: null
3+
push:
4+
branches:
5+
- master
6+
- '*.*'
7+
8+
name: static analysis
9+
10+
jobs:
11+
psalm:
12+
uses: spiral/gh-actions/.github/workflows/psalm.yml@master
13+
with:
14+
os: >-
15+
['ubuntu-latest']

.gitignore

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
.idea
2-
.php_cs
3-
.php_cs.cache
4-
.phpunit.result.cache
5-
build
6-
composer.lock
7-
coverage
8-
docs
9-
vendor
10-
node_modules
11-
.php-cs-fixer.cache
12-
.phpunit.cache/
1+
/.*/
2+
!/.github/
3+
/runtime/
4+
/vendor/
5+
/.env
6+
/composer.lock
7+
*.log
8+
*.exe

.php-cs-fixer.dist.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
require_once 'vendor/autoload.php';
6+
7+
return \Spiral\CodeStyle\Builder::create()
8+
->include(__DIR__ . '/src')
9+
->include(__DIR__ . '/tests')
10+
->include(__FILE__)
11+
->cache('./runtime/php-cs-fixer.cache')
12+
->allowRisky(false)
13+
->build();

.styleci.yml

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

composer.json

Lines changed: 100 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,107 @@
11
{
2-
"name": "spiral/testing",
3-
"description": "Spiral Framework testing SDK",
4-
"keywords": ["spiral-packages", "spiral", "testing"],
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "Anton Titov (wolfy-j)",
9-
"email": "wolfy-j@spiralscout.com"
2+
"name": "spiral/testing",
3+
"description": "Spiral Framework testing SDK",
4+
"keywords": [
5+
"spiral-packages",
6+
"spiral",
7+
"testing"
8+
],
9+
"license": "MIT",
10+
"authors": [
11+
{
12+
"name": "Anton Titov (wolfy-j)",
13+
"email": "wolfy-j@spiralscout.com"
14+
},
15+
{
16+
"name": "Pavel Buchnev (butschster)",
17+
"email": "pavel.buchnev@spiralscout.com"
18+
},
19+
{
20+
"name": "Aleksei Gagarin (roxblnfk)",
21+
"email": "alexey.gagarin@spiralscout.com"
22+
},
23+
{
24+
"name": "Maksim Smakouz (msmakouz)",
25+
"email": "maksim.smakouz@spiralscout.com"
26+
},
27+
{
28+
"name": "RoadRunner Community",
29+
"homepage": "https://github.com/spiral/roadrunner/graphs/contributors"
30+
}
31+
],
32+
"homepage": "https://spiral.dev/",
33+
"support": {
34+
"docs": "https://spiral.dev/docs/testing-start",
35+
"issues": "https://github.com/spiral/testing/issues",
36+
"chat": "https://discord.gg/TFeEmCs"
1037
},
11-
{
12-
"name": "Pavel Buchnev (butschster)",
13-
"email": "pavel.buchnev@spiralscout.com"
38+
"funding": [
39+
{
40+
"type": "github",
41+
"url": "https://github.com/sponsors/spiral"
42+
}
43+
],
44+
"require": {
45+
"ext-json": "*",
46+
"php": ">=8.1",
47+
"nyholm/psr7": "^1.5",
48+
"mockery/mockery": "^1.5",
49+
"phpunit/phpunit": "^9.6 || ^10.0",
50+
"spiral/auth": "^3.14.8",
51+
"spiral/auth-http": "^3.14.8",
52+
"spiral/boot": "^3.14.8",
53+
"spiral/events": "^3.14.8",
54+
"spiral/console": "^3.14.8",
55+
"spiral/core": "^3.14.8",
56+
"spiral/http": "^3.14.8",
57+
"spiral/mailer": "^3.14.8",
58+
"spiral/queue": "^3.14.8",
59+
"spiral/session": "^3.14.8",
60+
"spiral/security": "^3.14.8",
61+
"spiral/tokenizer": "^3.14.8",
62+
"spiral/storage": "^3.14.8",
63+
"spiral/views": "^3.14.8",
64+
"spiral/translator": "^3.14.8",
65+
"spiral/scaffolder": "^3.14.8",
66+
"symfony/mime": "^6.0 || ^7.0"
1467
},
15-
{
16-
"name": "Aleksei Gagarin (roxblnfk)",
17-
"email": "alexey.gagarin@spiralscout.com"
68+
"suggest": {
69+
"brianium/paratest": "Required to run tests in parallel (^6.0).",
70+
"ext-gd": "Required to use generate fake image files"
1871
},
19-
{
20-
"name": "Maksim Smakouz (msmakouz)",
21-
"email": "maksim.smakouz@spiralscout.com"
72+
"require-dev": {
73+
"spiral-packages/league-event": "^1.0.1",
74+
"spiral/code-style": "^2.2",
75+
"spiral/dumper": "^3.3",
76+
"spiral/framework": "^3.14.8",
77+
"spiral/nyholm-bridge": "^1.3",
78+
"spiral/roadrunner-bridge": "^2.2 || ^3.7 || ^4.0",
79+
"vimeo/psalm": "^5.9"
2280
},
23-
{
24-
"name": "RoadRunner Community",
25-
"homepage": "https://github.com/spiral/roadrunner/graphs/contributors"
26-
}
27-
],
28-
"homepage": "https://spiral.dev/",
29-
"support": {
30-
"docs": "https://spiral.dev/docs/testing-start",
31-
"issues": "https://github.com/spiral/testing/issues",
32-
"forum": "https://forum.roadrunner.dev/",
33-
"chat": "https://discord.gg/TFeEmCs"
34-
},
35-
"funding": [
36-
{
37-
"type": "github",
38-
"url": "https://github.com/sponsors/roadrunner-server"
39-
}
40-
],
41-
"require": {
42-
"ext-json": "*",
43-
"php": ">=8.1",
44-
"nyholm/psr7": "^1.5",
45-
"mockery/mockery": "^1.5",
46-
"phpunit/phpunit": "^9.6 || ^10.0",
47-
"spiral/auth": "^3.14.3",
48-
"spiral/auth-http": "^3.14.3",
49-
"spiral/boot": "^3.14.3",
50-
"spiral/events": "^3.14.3",
51-
"spiral/console": "^3.14.3",
52-
"spiral/core": "^3.14.3",
53-
"spiral/http": "^3.14.3",
54-
"spiral/mailer": "^3.14.3",
55-
"spiral/queue": "^3.14.3",
56-
"spiral/session": "^3.14.3",
57-
"spiral/security": "^3.14.3",
58-
"spiral/tokenizer": "^3.14.3",
59-
"spiral/storage": "^3.14.3",
60-
"spiral/views": "^3.14.3",
61-
"spiral/translator": "^3.14.3",
62-
"spiral/scaffolder": "^3.14.3",
63-
"symfony/mime": "^6.0 || ^7.0"
64-
},
65-
"suggest": {
66-
"brianium/paratest": "Required to run tests in parallel (^6.0).",
67-
"ext-gd": "Required to use generate fake image files"
68-
},
69-
"require-dev": {
70-
"spiral/dumper": "^3.3",
71-
"spiral/framework": "^3.14.3",
72-
"spiral/roadrunner-bridge": "^2.2 || ^3.7 || ^4.0",
73-
"spiral-packages/league-event": "^1.0.1",
74-
"spiral/nyholm-bridge": "^1.3",
75-
"vimeo/psalm": "^5.9"
76-
},
77-
"autoload": {
78-
"psr-4": {
79-
"Spiral\\Testing\\": "src"
80-
}
81-
},
82-
"autoload-dev": {
83-
"psr-4": {
84-
"Spiral\\Testing\\Tests\\App\\": "tests/app",
85-
"Spiral\\Testing\\Tests\\": "tests/src"
86-
}
87-
},
88-
"minimum-stability": "dev",
89-
"prefer-stable": true,
90-
"config": {
91-
"allow-plugins": {
92-
"spiral/composer-publish-plugin": false
81+
"autoload": {
82+
"psr-4": {
83+
"Spiral\\Testing\\": "src"
84+
}
85+
},
86+
"autoload-dev": {
87+
"psr-4": {
88+
"Spiral\\Testing\\Tests\\App\\": "tests/app",
89+
"Spiral\\Testing\\Tests\\": "tests/src"
90+
}
91+
},
92+
"minimum-stability": "dev",
93+
"prefer-stable": true,
94+
"config": {
95+
"sort-packages": true,
96+
"allow-plugins": {
97+
"spiral/composer-publish-plugin": false
98+
}
99+
},
100+
"scripts": {
101+
"cs:diff": "php-cs-fixer fix --dry-run -v --diff",
102+
"cs:fix": "php-cs-fixer fix -v",
103+
"psalm": "psalm",
104+
"psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
105+
"test": "phpunit --color=always"
93106
}
94-
}
95107
}

0 commit comments

Comments
 (0)