Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Check code style format
name: Code Style

on: [push, pull_request]

jobs:
style:
name: "PHP CS Fixer"
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
php: ['7.1', '7.3', '8.0']
name: "PHP CS Fixer - PHP v${{ matrix.php }}"

steps:
- name: Checkout code
Expand All @@ -14,7 +18,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
php-version: ${{ matrix.php }}
coverage: none

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.1.0",
"php": "^7.1|^8.0",
"friendsofphp/php-cs-fixer": "^2.16"
},
"autoload": {
Expand Down