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
1 change: 0 additions & 1 deletion .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
run: |
composer phpstan
composer rector
vendor/bin/structarmed analyze
- name: "Run test suite"
run: "composer test"
- name: Upload coverage to Codecov
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/structarmed_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: StructArmed

on:
pull_request:
push:
branches: ["main"]

jobs:
structarmed:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: "8.4"

- run: composer install --no-interaction --no-progress --prefer-dist

- name: Structarmed Cache
uses: actions/cache@v4
with:
path: /tmp/structarmed
key: ${{ runner.os }}-structarmed-${{ github.run_id }}
restore-keys: ${{ runner.os }}-structarmed-

- run: mkdir -p /tmp/structarmed

- name: Run StructArmed
run: vendor/bin/structarmed analyze
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"webmozart/assert": "^1.11 || ^2.1"
},
"require-dev": {
"boundwize/structarmed": "^0.0.3",
"boundwize/structarmed": "^0.3.3",
"laminas/laminas-coding-standard": "^3.0",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",
Expand Down
1 change: 1 addition & 0 deletions structarmed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
use Boundwize\StructArmed\Preset\Preset;

return Architecture::define()
->cacheDirectory(is_dir('/tmp') ? '/tmp/structarmed' : null)
->withPreset(Preset::PSR4());
Loading