Skip to content

Commit

Permalink
Fix linting, formatting and type checking in modified files only. (Pa…
Browse files Browse the repository at this point in the history
  • Loading branch information
skbhagat0502 authored Dec 5, 2023
1 parent 8185f30 commit e14bd0d
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,34 @@ jobs:

- name: Install Dependencies
run: npm ci

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40

- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "${file} was changed"
done
- name: Run ESLint to check for linting errors
run: npm run lint:check
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
npm run lint:check "${file}"
done
- name: Check for fomatting errors
run: npm run format:check

run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
npm run format:check "${file}"
done
- name: Run Typescript Type-Checker
run: npm run typecheck
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
npm run typecheck "${file}"
done
Test-Application:
name: Testing Application
Expand Down Expand Up @@ -123,4 +142,4 @@ jobs:
if: env.RUN_JSDOCS == 'True'
run: echo "Run JSdocs :${{ env.RUN_JSDOCS }}"



0 comments on commit e14bd0d

Please sign in to comment.