Skip to content

Commit 9e5d32b

Browse files
committed
Adding CI functionality to write commit
1 parent d4dd34c commit 9e5d32b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,20 @@ jobs:
3030
npm install
3131
3232
- name: Run Pint
33-
run: vendor/bin/pint --test
33+
run: vendor/bin/pint
3434

3535
- name: Frontend Format Check
36-
run: npm run format -- --check
36+
run: npm run format
3737

3838
- name: Frontend Lint
3939
run: npm run lint
4040

41+
- name: Commit changes
42+
uses: stefanzweifel/git-auto-commit-action@v5
43+
with:
44+
commit_message: fix code style
45+
commit_options: "--no-verify"
46+
47+
# We need to run PHPStan after commiting changes as it does not auto-fix errors.
4148
- name: PHPStan
4249
run: ./vendor/bin/phpstan

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://cdn.devdojo.com/assets/svg/laravel-react-logo.svg" width="300" alt="Laravel Logo"></a></p>
22

33
<p align="center">
4-
<a href="https://github.com/laravel/react-starter-kit/actions"><img src="https://github.com/laravel/react-starter-kit/workflows/tests/badge.svg" alt="Build Status"></a>
4+
<a href="https://github.com/laravel/react-starter-kit/actions"><img src="https://github.com/laravel/react-starter-kit/workflows/tests/badge.svg" alt="Test Status"></a>
5+
<a href="https://github.com/laravel/react-starter-kit/actions"><img src="https://github.com/laravel/react-starter-kit/workflows/lint/badge.svg" alt="Lint Status"></a>
56
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
67
</p>
78

0 commit comments

Comments
 (0)