Skip to content

Commit

Permalink
Add baseline; update gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Dec 8, 2024
1 parent cd320c0 commit d83e4a7
Show file tree
Hide file tree
Showing 4 changed files with 5,860 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
/phpunit.dist.xml export-ignore
/.php-cs-fixer.dist.php export-ignore
/phpstan.dist.neon export-ignore
/phpstan-baseline.neon export-ignore
/README.md export-ignore
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ on:
types: [ created ]

jobs:
check_composer:
name: Check composer.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.3'
- run: composer validate --strict --no-check-lock

check_code_style:
name: Check code style
runs-on: ubuntu-latest
Expand All @@ -21,6 +32,19 @@ jobs:
run: composer update
- run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --show-progress=dots

static_analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.3'
- name: Install dependencies
run: composer update
- run: ./vendor/bin/phpstan analyze

tests:
runs-on: ubuntu-latest
name: Build and test
Expand Down
Loading

0 comments on commit d83e4a7

Please sign in to comment.