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 7, 2024
1 parent dc11f24 commit 57a92b2
Show file tree
Hide file tree
Showing 4 changed files with 5,873 additions and 18 deletions.
27 changes: 14 additions & 13 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/.github/ export-ignore
/bin/ export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/CHANGELOG.md export-ignore
/CONTRIBUTING.md export-ignore
/package.xml.tpl export-ignore
/phpdoc.ini.dist export-ignore
/phpunit.dist.xml export-ignore
/phpstan.dist.neon export-ignore
/README.md export-ignore
/.github/ export-ignore
/bin/ export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/CHANGELOG.md export-ignore
/CONTRIBUTING.md export-ignore
/package.xml.tpl export-ignore
/phpdoc.ini.dist export-ignore
/phpunit.dist.xml export-ignore
/phpstan.dist.neon export-ignore
/README.md export-ignore
phpstan-baseline.neon export-ignore
29 changes: 24 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ 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

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 All @@ -22,23 +46,18 @@ jobs:
symfony-version: '^5.4'
- php: 8.1
symfony-version: '^6.4'

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
ini-file: "development"
coverage: none

- name: Update Symfony version
if: matrix.symfony-version != ''
run: composer require --no-update "symfony/symfony:${{ matrix.symfony-version }}"

- name: Install dependencies
run: composer update ${{ matrix.composer-flags }}

- name: Run tests (phpunit)
run: ./vendor/bin/phpunit
Loading

0 comments on commit 57a92b2

Please sign in to comment.