Skip to content

Commit fe8bd6d

Browse files
authored
Update lint.yml
1 parent d7712a6 commit fe8bd6d

1 file changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/lint.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ name: linter
22

33
on:
44
push:
5-
branches:
6-
- develop
7-
- main
5+
branches: ["*"]
86
pull_request:
9-
branches:
10-
- develop
11-
- main
7+
branches: ["*"]
128

139
permissions:
1410
contents: write
@@ -22,24 +18,26 @@ jobs:
2218
- name: Setup PHP
2319
uses: shivammathur/setup-php@v2
2420
with:
25-
php-version: '8.4'
21+
php-version: '8.3'
22+
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, iconv, json, mbstring, pdo
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '22'
2628

2729
- name: Install Dependencies
2830
run: |
2931
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
30-
npm install
3132
32-
- name: Run Pint
33-
run: vendor/bin/pint
33+
- name: Install pnpm
34+
run: npm install -g pnpm
3435

35-
- name: Format Frontend
36-
run: npm run format
36+
- name: Install Node dependencies
37+
run: pnpm i
3738

38-
- name: Lint Frontend
39-
run: npm run lint
39+
- name: Lint Backend
40+
run: vendor/bin/pint --test
4041

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'
42+
- name: Lint Frontend
43+
run: pnpm run format:check

0 commit comments

Comments
 (0)