Skip to content

Commit

Permalink
add new lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Jan 26, 2024
1 parent 4e8e7c5 commit c09bbc6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check Linting

on: ["push", "pull_request"]

jobs:
build:
name: PHP ${{ matrix.php }}

runs-on: ubuntu-latest

strategy:
matrix:
php:
- 8.3

steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: php-cs-fixer

- run: php-cs-fixer fix --ansi --diff --show-progress=none --verbose
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,3 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- run: composer run test

- run: composer run lint -- --dry-run
if: ${{ matrix.php <= '8.0' }}

0 comments on commit c09bbc6

Please sign in to comment.