Skip to content

Commit d1fa1ef

Browse files
committed
Adding code quality workflow
1 parent 4106212 commit d1fa1ef

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/code-quality.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Code Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
pull_request:
9+
branches:
10+
- develop
11+
- main
12+
13+
jobs:
14+
quality:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.2'
23+
24+
- name: Install Dependencies
25+
run: |
26+
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
27+
npm install
28+
29+
- name: Pint CS Fixer
30+
run: ./vendor/bin/pint --test
31+
32+
- name: PHPStan
33+
run: ./vendor/bin/phpstan analyse ./app
34+
35+
- name: Frontend Format Check
36+
run: npm run format:check
37+
38+
- name: Frontend Lint
39+
run: npm run lint

0 commit comments

Comments
 (0)