Skip to content

πŸ› add github action to run grumphp #3

πŸ› add github action to run grumphp

πŸ› add github action to run grumphp #3

Workflow file for this run

name: Tasks
on: [push, pull_request]
jobs:
lint-php:
name: "php: ${{ matrix.php }} ${{ matrix.prefer-lowest }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
prefer-lowest: ['--prefer-lowest', '']
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-composer-
- run: composer update ${{ matrix.prefer-lowest }} --no-interaction --no-progress
- run: ./vendor/bin/grumphp run --ansi