Skip to content

Commit

Permalink
Add github action for quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Ben87 committed Feb 20, 2023
1 parent c026741 commit ed0c3aa
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 44 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: 'Quality'

on:
push:
branches: ['*']

jobs:
phpcs:
name: 'PHP CodeSniffer'
runs-on: 'ubuntu-latest'
env:
SYMFONY_REQUIRE: '${{matrix.symfony-require}}'

strategy:
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
symfony-require: ['5.4.*', '6.0.*', '6.1.*', '6.2.*']

steps:
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php-version }}'
coverage: 'none'

- name: 'Checkout sources'
uses: 'actions/checkout@v3'

- name: 'Install dependencies'
run: 'composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist'

- name: 'Execute PHP CodeSniffer'
run: 'vendor/bin/phpcs -p'

phpstan:
name: 'PHPStan'
runs-on: 'ubuntu-latest'
env:
SYMFONY_REQUIRE: '${{matrix.symfony-require}}'

strategy:
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
symfony-require: ['5.4.*', '6.0.*', '6.1.*', '6.2.*']

steps:
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php-version }}'
coverage: 'none'

- name: 'Checkout sources'
uses: 'actions/checkout@v3'

- name: 'Install dependencies'
run: 'composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist'

- name: 'Execute PHPStan'
run: 'vendor/bin/phpstan'
10 changes: 0 additions & 10 deletions .scrutinizer.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PrestaImageBundle
=================

[![Build Status](https://scrutinizer-ci.com/g/prestaconcept/PrestaImageBundle/badges/build.png?b=master)](https://scrutinizer-ci.com/g/prestaconcept/PrestaImageBundle/build-status/master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/prestaconcept/PrestaImageBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/prestaconcept/PrestaImageBundle/?branch=master)
![quality](https://github.com/prestaconcept/PrestaImageBundle/actions/workflows/quality.yml/badge.svg)
[![Latest Stable Version](https://poser.pugx.org/presta/image-bundle/v/stable.png)](https://packagist.org/packages/presta/image-bundle)
[![Total Downloads](https://poser.pugx.org/presta/image-bundle/downloads.png)](https://packagist.org/packages/presta/image-bundle)

Expand Down

0 comments on commit ed0c3aa

Please sign in to comment.