diff options
author | Vitor Mattos <vitor@php.rio> | 2022-05-06 17:32:10 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-05-06 17:32:10 +0300 |
commit | bdd7f2f18737a0b651b111885b60e02f057ace4e (patch) | |
tree | 32ee72aa526287e88c07cf5082f4de19c3b94b27 /.github | |
parent | 2d3290d171dfd459561c719bae2acc828171fe5a (diff) |
Apply lint
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f9769a3 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +name: Lint +on: pull_request + +jobs: + php-cs-fixer: + runs-on: ubuntu-latest + strategy: + # do not stop on another job's failure + fail-fast: false + matrix: + php-versions: ['7.4', '8.0'] + databases: ['sqlite'] + server-versions: ['stable24'] + + name: php-cs check php${{ matrix.php-versions }} + + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Set up php + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: Install dependencies + run: composer i + + - name: Run coding standards check + run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) |