Skip to content

Commit

Permalink
reorganized. duplicated config
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Feb 29, 2024
1 parent ef49957 commit c7e298e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6,888 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
paths:
- .github/workflows/static-analysis.yml
- tests/StaticAnalysis/*
- composer.*
- lib/**
- phpstan*
Expand All @@ -15,6 +16,7 @@ on:
- master
paths:
- .github/workflows/static-analysis.yml
- tests/StaticAnalysis/*
- composer.*
- lib/**
- phpstan*
Expand All @@ -38,6 +40,9 @@ jobs:
- name: Install dependencies with Composer
uses: ramsey/composer-install@v2

- name: Run static analysis with phpstan/phpstan
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr
- name: Run static analysis w/ phpVersion 74
run: vendor/bin/phpstan analyse -c tests/StaticAnalysis/phpstan-74.neon --error-format=checkstyle | cs2pr

- name: Run static analysis w/ phpVersion 83
run: vendor/bin/phpstan analyse -c tests/StaticAnalysis/phpstan-83.neon --error-format=checkstyle | cs2pr

5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@
},
"scripts": {
"analyse": [
"@phpstan"
"@phpstan83"
],
"phpstan": "phpstan analyse --memory-limit=1G"
"phpstan74": "phpstan analyse -c tests/StaticAnalysis/phpstan-74.neon --memory-limit=1G",
"phpstan83": "phpstan analyse -c tests/StaticAnalysis/phpstan-83.neon --memory-limit=1G"
}
}
Loading

0 comments on commit c7e298e

Please sign in to comment.