Skip to content

Commit

Permalink
Add GHA to check for unused exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Nov 12, 2024
1 parent cbf6ada commit 7e27d7c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/frontend_lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,15 @@ jobs:
run: yarn
- name: Run ESLint
run: npx eslint . --ext .js,.jsx,.ts,.tsx --max-warnings=0

check_exports:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Install modules
run: yarn
- name: Run Unused Exports Check
run: ./node_modules/.bin/ts-unused-exports tsconfig.json
27 changes: 26 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@types/ovenplayer": "^0.10.10",
"@types/react-modal": "^3.16.3",
"@types/styled-components": "^5.1.34",
"@types/video.js": "^7.3.57"
"@types/video.js": "^7.3.57",
"ts-unused-exports": "^10.1.0"
}
}

0 comments on commit 7e27d7c

Please sign in to comment.