Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3']
dependency-versions: ['lowest', 'highest']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- run: composer validate --strict

- run: composer install --prefer-dist --no-progress --no-suggest

- run: vendor/bin/phpcs
if: ${{ failure() || success() }}

- run: vendor/bin/phpstan
if: ${{ failure() || success() }}

- run: vendor/bin/rector process --dry-run
if: ${{ failure() || success() }}

- run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./clover.xml --log-junit ./phpunit.report.xml
if: ${{ failure() || success() }}=
31 changes: 0 additions & 31 deletions .github/workflows/phpunit.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
},
"require-dev": {
"symfony/test-pack": "^1.0",
"rector/rector": "^2.2"
"assoconnect/php-quality-config": "^1.16"
}
}
Loading