-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate the coding standards and static analysis workflows.
- Loading branch information
1 parent
57f2e74
commit 02c28ea
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | ||
|
||
name: Static Analysis | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'trunk' | ||
paths: | ||
- '.github/workflows/static-analysis.yml' | ||
- '**.php' | ||
- 'composer.json' | ||
- 'phpstan.neon.dist' | ||
pull_request: | ||
branches: | ||
- '**' | ||
paths: | ||
- '.github/workflows/static-analysis.yml' | ||
- '**.php' | ||
- 'composer.json' | ||
- 'phpstan.neon.dist' | ||
workflow_dispatch: | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.label }} | ||
permissions: | ||
contents: read | ||
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-static-analysis.yml@trunk | ||
strategy: | ||
matrix: | ||
label: | ||
- 'PHP' | ||
php: | ||
# Newest and oldest supported versions of PHP | ||
- '8.4' | ||
- '7.4' | ||
fail-fast: false | ||
with: | ||
php: ${{ matrix.php }} |