Skip to content

Commit d83e4a7

Browse files
committed
Add baseline; update gh workflow
1 parent cd320c0 commit d83e4a7

File tree

4 files changed

+5860
-0
lines changed

4 files changed

+5860
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
/phpunit.dist.xml export-ignore
1212
/.php-cs-fixer.dist.php export-ignore
1313
/phpstan.dist.neon export-ignore
14+
/phpstan-baseline.neon export-ignore
1415
/README.md export-ignore

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ on:
88
types: [ created ]
99

1010
jobs:
11+
check_composer:
12+
name: Check composer.json
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: shivammathur/setup-php@v2
17+
with:
18+
coverage: none
19+
php-version: '8.3'
20+
- run: composer validate --strict --no-check-lock
21+
1122
check_code_style:
1223
name: Check code style
1324
runs-on: ubuntu-latest
@@ -21,6 +32,19 @@ jobs:
2132
run: composer update
2233
- run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --show-progress=dots
2334

35+
static_analysis:
36+
name: Static analysis
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: shivammathur/setup-php@v2
41+
with:
42+
coverage: none
43+
php-version: '8.3'
44+
- name: Install dependencies
45+
run: composer update
46+
- run: ./vendor/bin/phpstan analyze
47+
2448
tests:
2549
runs-on: ubuntu-latest
2650
name: Build and test

0 commit comments

Comments
 (0)