Skip to content

Commit

Permalink
Merge pull request #2 from 2002Bishwajeet/feat-add-linter-workflow
Browse files Browse the repository at this point in the history
feat: Add linter workflow
  • Loading branch information
christyjacob4 authored Jul 17, 2023
2 parents 17a5935 + 0a35911 commit 61c9b8f
Showing 1 changed file with 20 additions and 0 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"

0 comments on commit 61c9b8f

Please sign in to comment.