-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add style checker workflow & update tests workflow
- Loading branch information
1 parent
241c7bf
commit 2e54a25
Showing
2 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters