Skip to content

Commit

Permalink
feat: add Pint for style linting
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Jul 12, 2022
1 parent 0b09e35 commit f8c2368
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@ name: Static Analysis
on: ['push', 'pull_request']

jobs:
pint:
runs-on: ubuntu-latest

name: Pint

steps:

- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: zip
tools: composer
coverage: none

- name: Install PHP dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: highest
composer-options: "--prefer-dist"

- name: Run Pint
run: vendor/bin/pint --test --ansi

phpstan:
runs-on: ubuntu-latest

Expand Down
1 change: 0 additions & 1 deletion .styleci.yml

This file was deleted.

1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"require-dev": {
"ext-json": "*",
"laravel/pint": "^0.2.3",
"phpstan/phpstan": "^1.4.5",
"phpunit/phpunit": "^9.5"
},
Expand Down

0 comments on commit f8c2368

Please sign in to comment.