Skip to content

Commit

Permalink
Merge pull request #23 from neelshah2409/main
Browse files Browse the repository at this point in the history
Added Code analyser to Image
  • Loading branch information
christyjacob4 authored Apr 6, 2023
2 parents f8f217f + 8266758 commit 547d398
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 228 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "CodeQL"

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

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

- run: git checkout HEAD^2

- name: Run CodeQL
run: |
docker run --rm -v $PWD:/app composer sh -c \
"composer install --profile --ignore-platform-reqs && composer check"
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"scripts": {
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint"
"format": "./vendor/bin/pint",
"check": "./vendor/bin/phpstan analyse --level max src tests"
},
"require": {
"php": ">=8.0",
Expand All @@ -18,7 +19,8 @@
"require-dev": {
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "4.13.1",
"phpstan/phpstan": "1.9.x-dev",
"laravel/pint": "1.2.*"
},
"minimum-stability": "dev"
}
}
Loading

0 comments on commit 547d398

Please sign in to comment.