Skip to content

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IITI-tushar authored Jan 25, 2025
1 parent 0e8c706 commit 7e8afba
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,19 @@ jobs:
chmod +x ./.github/workflows/scripts/countline.py
./.github/workflows/scripts/countline.py --lines 600 --exclude_files src/screens/LoginPage/LoginPage.tsx src/GraphQl/Queries/Queries.ts src/screens/OrgList/OrgList.tsx src/GraphQl/Mutations/mutations.ts src/components/EventListCard/EventListCardModals.tsx src/components/TagActions/TagActionsMocks.ts src/utils/interfaces.ts src/screens/MemberDetail/MemberDetail.tsx
# Get Changed .ts and .tsx Files
- name: Get changed TypeScript files
id: changed-ts-files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: |
**/*.ts
**/*.tsx
# Run the CSS import check script on changed .ts and .tsx files

# Run the CSS import check script on changed .ts and .tsx files
- name: Check for CSS violations and print correct imports
if: ${{ steps.changed-ts-files.outputs.any_changed == 'true' }}
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
run: |
# Pass all modified files as arguments to the script
python3 ./.github/workflows/scripts/css_check.py \
--files ${{ steps.changed-ts-files.outputs.modified_files }} \
--files ${{ steps.changed-files.outputs.modified_files }} \
--allowed_css_patterns app.module.css
- name: Get changed TypeScript files
id: changed-files
uses: tj-actions/changed-files@v45
- name: Check formatting
if: steps.changed-files.outputs.only_changed != 'true'
run: npm run format:check
Expand Down

0 comments on commit 7e8afba

Please sign in to comment.