Skip to content

Commit 5300294

Browse files
authored
Update coding-standards.yml
1 parent b21c35f commit 5300294

File tree

1 file changed

+16
-36
lines changed

1 file changed

+16
-36
lines changed

.github/workflows/coding-standards.yml

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,19 @@ env:
1212
COMPOSER_NO_AUDIT: 1
1313

1414
jobs:
15-
lint:
16-
name: PHP CS Check
17-
runs-on: ubuntu-latest
18-
19-
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v4
22-
23-
- name: Setup PHP
24-
uses: shivammathur/setup-php@v2
25-
with:
26-
php-version: 8.4
27-
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl
28-
coverage: none
29-
tools: composer:v2
30-
31-
- name: Setup problem matchers
32-
run: echo "::add-matcher::/opt/hostedtoolcache/php.json"
33-
34-
- name: Get composer cache directory
35-
id: composer-cache
36-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
37-
38-
- name: Cache dependencies
39-
uses: actions/cache@v4
40-
with:
41-
path: ${{ steps.composer-cache.outputs.dir }}
42-
key: ${{ runner.os }}-composer-8.4-${{ hashFiles('**/composer.json') }}
43-
restore-keys: |
44-
${{ runner.os }}-composer-8.4-
45-
46-
- name: Install dependencies
47-
run: composer update --prefer-dist --no-interaction --no-progress
48-
49-
- name: Check code style with Laravel Pint
50-
run: vendor/bin/pint --test
15+
phplint:
16+
permissions:
17+
contents: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: "laravel-pint"
22+
uses: aglipanci/laravel-pint-action@latest
23+
with:
24+
configPath: './pint.json'
25+
26+
- name: Commit changes
27+
uses: stefanzweifel/git-auto-commit-action@v4
28+
with:
29+
commit_message: PHP Linting (Pint)
30+
skip_fetch: true

0 commit comments

Comments
 (0)