Skip to content

Commit

Permalink
Add style checker workflow & update tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
omalizadeh committed May 5, 2023
1 parent 241c7bf commit 2e54a25
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/php-cs-fixer.yml
@@ -0,0 +1,29 @@
name: Check Style

on: [ push, pull_request ]

jobs:
php-cs-fixer:
name: Code Standard & Style Check
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-stable-laravel-10.x-php-8.1-composer-${{ hashFiles('composer.json') }}

- name: Run composer install
run: composer install -n --prefer-dist

- name: Run code style check
run: ./vendor/bin/php-cs-fixer fix -v --dry-run --show-progress=dots
14 changes: 2 additions & 12 deletions .github/workflows/tests.yml
Expand Up @@ -9,28 +9,18 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 7.4, 8.0, 8.1, 8.2 ]
laravel: [ 7.*, 8.*, 9.*, 10.* ]
php: [ 8.1, 8.2 ]
laravel: [ 8.*, 9.*, 10.* ]
exclude:
- php: 8.0
laravel: 10.*
- php: 7.4
laravel: 10.*
- php: 7.4
laravel: 9.*
- php: 8.2
laravel: 7.*
- php: 8.1
laravel: 7.*
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down

0 comments on commit 2e54a25

Please sign in to comment.