-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
264 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,152 +1,148 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
composer-validate: | ||
runs-on: ubuntu-latest | ||
name: "Composer Validate" | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Validate composer.json' | ||
run: composer validate --no-check-all --strict --no-check-lock | ||
|
||
composer-install: | ||
needs: composer-validate | ||
runs-on: ubuntu-latest | ||
name: "Composer Install" | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Install Dependencies' | ||
run: composer install --prefer-dist --no-progress --no-interaction | ||
|
||
code-style: | ||
needs: composer-install | ||
runs-on: ubuntu-latest | ||
name: "Code Style" | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
ini-values: memory_limit=-1 | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run CodeSniffer' | ||
run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests|src|public" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony | ||
|
||
static-analysis: | ||
needs: composer-install | ||
runs-on: ubuntu-latest | ||
name: "Static Analysis" | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
ini-values: memory_limit=-1 | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run PHPStan' | ||
run: ./vendor/bin/phpstan analyse --no-progress -c phpstan.neon ./ | ||
|
||
test: | ||
needs: composer-install | ||
runs-on: ubuntu-latest | ||
name: "Tests (PHP ${{ matrix.php-version }} / Symfony ${{ matrix.symfony-version }})" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
symfony-version: | ||
- '5.3' | ||
- '5.4' | ||
- '6.0' | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
ini-values: memory_limit=-1 | ||
coverage: none | ||
tools: composer:v2 | ||
env: | ||
SYMFONY_VERSION: ${{ matrix.symfony-version }} | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run PHPUnit' | ||
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist | ||
|
||
code-coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: "Code Coverage" | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
ini-values: memory_limit=-1 | ||
coverage: pcov | ||
tools: composer:v2 | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run PHPUnit with Code Coverage' | ||
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist --coverage-clover=coverage.xml | ||
|
||
- name: 'Download Coverage Files' | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: reports | ||
|
||
- name: 'Upload to Codecov' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: ./coverage.xml | ||
fail_ci_if_error: true | ||
verbose: true | ||
composer-validate: | ||
runs-on: ubuntu-latest | ||
name: "Composer Validate" | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Validate composer.json' | ||
run: composer validate --no-check-all --strict --no-check-lock | ||
|
||
composer-install: | ||
needs: composer-validate | ||
runs-on: ubuntu-latest | ||
name: "Composer Install" | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Install Dependencies' | ||
run: composer install --prefer-dist --no-progress --no-interaction | ||
|
||
code-style: | ||
needs: composer-install | ||
runs-on: ubuntu-latest | ||
name: "Code Style" | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
ini-values: memory_limit=-1 | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run CodeSniffer' | ||
run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests|src|public" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony | ||
|
||
static-analysis: | ||
needs: composer-install | ||
runs-on: ubuntu-latest | ||
name: "Static Analysis" | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
ini-values: memory_limit=-1 | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run PHPStan' | ||
run: ./vendor/bin/phpstan analyse --no-progress -c phpstan.neon ./ | ||
|
||
test: | ||
needs: composer-install | ||
runs-on: ubuntu-latest | ||
name: "Tests (PHP ${{ matrix.php-version }} / Symfony ${{ matrix.symfony-version }})" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- '8.1' | ||
symfony-version: | ||
- '6.1' | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
ini-values: memory_limit=-1 | ||
coverage: none | ||
tools: composer:v2 | ||
env: | ||
SYMFONY_VERSION: ${{ matrix.symfony-version }} | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run PHPUnit' | ||
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist | ||
|
||
code-coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: "Code Coverage" | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
ini-values: memory_limit=-1 | ||
coverage: pcov | ||
tools: composer:v2 | ||
|
||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --optimize-autoloader | ||
working-directory: './' | ||
|
||
- name: 'Run PHPUnit with Code Coverage' | ||
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist --coverage-clover=coverage.xml | ||
|
||
- name: 'Download Coverage Files' | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: reports | ||
|
||
- name: 'Upload to Codecov' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: ./coverage.xml | ||
fail_ci_if_error: true | ||
verbose: true |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
checks: | ||
php: true | ||
php: true | ||
|
||
filter: | ||
excluded_paths: | ||
- vendor/* | ||
- Tests/* | ||
excluded_paths: | ||
- vendor/* | ||
- Tests/* | ||
|
||
before_commands: | ||
- "composer install --prefer-dist" | ||
- "composer install --prefer-dist" |
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
Oops, something went wrong.