Skip to content
Merged
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
24 changes: 17 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ on: push
jobs:
check:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: ['ubuntu-latest']
php: ['8.0', '7.4']

name: PHP ${{ matrix.php }} - ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- run: git fetch origin master

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

- name: Get composer cache directory
id: composer-cache
Expand All @@ -24,17 +31,20 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run phplint
uses: StephaneBour/actions-php-lint@7.4
- name: Run PHP Simple Lint
uses: davidlienhard/php-simple-lint@v1
with:
folder: './'
ignore: './vendor/\*'

- name: Show changed files
run: composer changed-files
Expand Down