Skip to content

Commit fe5422c

Browse files
authored
Merge pull request #2: Improve V3
2 parents 23444f5 + b68b528 commit fe5422c

File tree

106 files changed

+2079
-2182
lines changed

Some content is hidden

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

106 files changed

+2079
-2182
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.yaml]
12+
indent_size = 2
13+
14+
[*.yml]
15+
indent_size = 2
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[Makefile]
21+
indent_style = tab

.gitattributes

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
/.gitattributes export-ignore
2-
/.github/ export-ignore
3-
/.gitignore export-ignore
4-
/phpstan.neon.dist export-ignore
5-
/phpunit.xml.dist export-ignore
6-
/phpunit.xml.legacy export-ignore
7-
/tests/ export-ignore
1+
* text=auto eol=lf
2+
3+
/.* export-ignore
4+
/tests export-ignore
5+
/phpunit.xml* export-ignore
6+
/psalm.* export-ignore
7+
/psalm-baseline.xml export-ignore
8+
/infection.* export-ignore
9+
/rector.php export-ignore
10+
/phpstan.* export-ignore

.github/workflows/ci.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ jobs:
99
name: PHPUnit (PHP ${{ matrix.php }})
1010
runs-on: ubuntu-24.04
1111
strategy:
12+
fail-fast: false
1213
matrix:
1314
php:
1415
- 8.4
1516
- 8.3
1617
- 8.2
1718
- 8.1
18-
- 8.0
19-
- 7.4
20-
- 7.3
21-
- 7.2
22-
- 7.1
2319
steps:
2420
- uses: actions/checkout@v5
2521
- uses: shivammathur/setup-php@v2
@@ -28,10 +24,9 @@ jobs:
2824
coverage: xdebug
2925
ini-file: development
3026
- run: composer install
31-
- run: vendor/bin/phpunit --coverage-text
32-
if: ${{ matrix.php >= 7.3 }}
33-
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
34-
if: ${{ matrix.php < 7.3 }}
27+
- run: composer test:arch
28+
- run: composer test:unit
29+
- run: composer test:feat
3530

3631
PHPStan:
3732
name: PHPStan (PHP ${{ matrix.php }})
@@ -43,15 +38,11 @@ jobs:
4338
- 8.3
4439
- 8.2
4540
- 8.1
46-
- 8.0
47-
- 7.4
48-
- 7.3
49-
- 7.2
5041
steps:
5142
- uses: actions/checkout@v5
5243
- uses: shivammathur/setup-php@v2
5344
with:
5445
php-version: ${{ matrix.php }}
5546
coverage: none
5647
- run: composer install
57-
- run: vendor/bin/phpstan
48+
- run: composer stan

.github/workflows/cs-fix.yml

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

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
/composer.lock
1+
/.*
2+
!/.github/
3+
!/.php-cs-fixer.dist.php
4+
!/.editorconfig
5+
/runtime/
26
/vendor/
7+
/.env
8+
/composer.lock
9+
*.log

.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(__DIR__ . '/rector.php')
11+
->include(__FILE__)
12+
->allowRisky(false)
13+
->build();

0 commit comments

Comments
 (0)