Skip to content

Commit a573052

Browse files
committed
ci: add Pint job to static analysis workflow
1 parent 75aa899 commit a573052

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/static-analysis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,33 @@ jobs:
4141

4242
- name: Run PHPStan
4343
run: composer analyse
44+
45+
pint:
46+
name: Pint
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- name: Setup PHP
53+
uses: shivammathur/setup-php@v2
54+
with:
55+
php-version: 8.4
56+
coverage: none
57+
58+
- name: Get composer cache directory
59+
id: composer-cache
60+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
61+
62+
- name: Cache dependencies
63+
uses: actions/cache@v4
64+
with:
65+
path: ${{ steps.composer-cache.outputs.dir }}
66+
key: ${{ runner.os }}-pint-composer-${{ hashFiles('**/composer.json') }}
67+
restore-keys: ${{ runner.os }}-pint-composer-
68+
69+
- name: Install dependencies
70+
run: composer install --no-interaction
71+
72+
- name: Run Pint
73+
run: composer lint -- --test

0 commit comments

Comments
 (0)