Skip to content

Commit 068024c

Browse files
authored
Merge pull request #25 from samsonasik/add-structarmed-to-ci
Add structarmed to CI
2 parents 47e1aff + 382656f commit 068024c

5 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/ci_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: |
3838
bin/phpstan analyse src/ --level=max -c phpstan.neon
3939
bin/rector process --dry-run
40+
bin/structarmed analyze
4041
- name: "Run test suite"
4142
run: "mkdir -p build/logs && bin/kahlan --coverage=4 --reporter=verbose --clover=build/logs/clover.xml"
4243
- name: Upload coverage to Codecov

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"laminas/laminas-mvc": "<3.0"
3333
},
3434
"require-dev": {
35+
"boundwize/structarmed": "^0.0.3",
3536
"kahlan/kahlan": "^6.0",
3637
"laminas/laminas-coding-standard": "^3.0",
3738
"laminas/laminas-mvc": "^3.8",

phpcs.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
<!-- Paths to check -->
66
<file>src</file>
7+
<file>rector.php</file>
8+
<file>structarmed.php</file>
79
</ruleset>

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
__DIR__ . '/config',
1414
__DIR__ . '/src',
1515
__DIR__ . '/spec',
16-
__DIR__ . '/rector.php'
1716
])
1817
->withRootFiles()
1918
->withSkip([

structarmed.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Boundwize\StructArmed\Architecture;
6+
use Boundwize\StructArmed\Preset\Preset;
7+
8+
return Architecture::define()
9+
->withPreset(Preset::PSR4(sourcePaths: ['src', 'spec']));

0 commit comments

Comments
 (0)