Skip to content

Commit

Permalink
github actions linting check
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthonyp0329 committed May 29, 2024
1 parent f2b5b05 commit f8d036c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/lint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ jobs:
run: |
npm ci
npm run lint-check
admin portal frontend:
name: Admin portal frontend lint and style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- working-directory: admin-portal-frontend # Change this to the name of your frontend directory
run: |
npm ci
npm run lint-check
2 changes: 1 addition & 1 deletion backend/.env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PORT=3001
DEV_PORT=3001
DATABASE_URL=REPLACE_ME
NODE_ENV=deployment
3 changes: 1 addition & 2 deletions dfm-sideline-sidekick-app/pages/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ const SearchPage: React.FC<SearchPageProps> = ({
const matchedDocuments = searchDocuments(allDocuments, text).map((doc) => ({
...doc,
_id: doc._id ?? "fallback-id",
subtitle:
doc.subtitle ?? "Lorem ipsum dolor sit amet, consectetur adip iscing elit, sed do.",
subtitle: doc.subtitle,
}));
setFilteredDocuments(matchedDocuments);
} else {
Expand Down

0 comments on commit f8d036c

Please sign in to comment.