We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75aa899 commit a573052Copy full SHA for a573052
1 file changed
.github/workflows/static-analysis.yml
@@ -41,3 +41,33 @@ jobs:
41
42
- name: Run PHPStan
43
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
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