Skip to content

Commit d70f450

Browse files
authored
👷 Add coding standards github actions (#103)
* 👷 Add coding standards github actions * wip
1 parent 2e42176 commit d70f450

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/coding-standars.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: fix code styling
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: 8.2
17+
extensions: json, dom, curl, libxml, mbstring
18+
coverage: none
19+
20+
- name: Install Pint
21+
run: composer global require laravel/pint
22+
23+
- name: Run Pint
24+
run: pint
25+
26+
- name: Commit linted files
27+
uses: stefanzweifel/git-auto-commit-action@v4
28+
with:
29+
commit_message: Fix code styling

.github/workflows/tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,5 @@ jobs:
2121
- name: Install Composer dependencies
2222
run: composer install --prefer-dist --no-interaction
2323

24-
- name: Run Laravel Pint
25-
run: composer pint
26-
2724
- name: Execute tests
2825
run: composer pest

0 commit comments

Comments
 (0)