Skip to content

Commit

Permalink
Merge pull request #61 from mohitcharkha/addLinter
Browse files Browse the repository at this point in the history
Feat:added pint linter
  • Loading branch information
christyjacob4 authored Jan 27, 2023
2 parents a77f526 + 3e7a78d commit 31046fd
Show file tree
Hide file tree
Showing 40 changed files with 728 additions and 626 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Linter"

on: [pull_request]
jobs:
lint:
name: Linter
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2

- run: git checkout HEAD^2

- name: Run Linter
run: |
docker run --rm -v $PWD:/app composer sh -c \
"composer install --profile --ignore-platform-reqs && composer lint"
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"autoload-dev": {
"psr-4": {"Utopia\\Tests\\Storage\\":"tests/Storage"}
},
"scripts": {
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint"
},
"require": {
"ext-fileinfo": "*",
"ext-zlib": "*",
Expand All @@ -23,7 +27,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "4.0.1"
"vimeo/psalm": "4.0.1",
"laravel/pint": "1.2.*"
},
"minimum-stability": "dev"
}
Loading

0 comments on commit 31046fd

Please sign in to comment.