Skip to content

Commit 56a82b9

Browse files
committed
πŸ› Fix GitHub Actions workflow failures
- Fixed syntax error in server app.ts (malformed import statement) - Added missing test:ci script to server package.json - Fixed client linting errors (space-before-function-paren) - Updated health test mocks to include complete HealthStatus interface - Modified workflows to handle rollup dependency issues in CI - Added .npmrc to server for dependency resolution Fixes: - Release workflow test failures (missing test:ci script and rollup issues) - Deploy-server workflow build failures (TypeScript compilation errors) - Client linting failures (ESLint rule violations)
1 parent 15e55ff commit 56a82b9

File tree

10 files changed

+4215
-3573
lines changed

10 files changed

+4215
-3573
lines changed

β€Ž.github/workflows/deploy-server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- name: Build and save Docker image
2727
working-directory: ./server
2828
run: |
29+
# Clean install dependencies to avoid rollup issues
30+
rm -rf node_modules package-lock.json
31+
npm install
2932
docker build -t lab1-todoapp-server:latest --target production .
3033
docker save lab1-todoapp-server:latest | gzip > lab1-todoapp-server.tar.gz
3134

β€Ž.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
- name: πŸ“₯ Install Dependencies
3939
run: |
4040
cd ${{ matrix.package }}
41-
npm ci
41+
rm -rf node_modules package-lock.json
42+
npm install
4243
4344
- name: πŸ” Lint
4445
run: |

β€Žclient/app/docs/[slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function DocPage() {
2222
const docInfo = slug ? getDocById(slug) : null;
2323

2424
useEffect(() => {
25-
const loadDoc = async () => {
25+
const loadDoc = async() => {
2626
if (!docInfo) {
2727
setError('Document not found');
2828
setLoading(false);

β€Žclient/components/modules/Navigation/NavigationHeader.modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const NavigationHeaderModal: React.FC<NavigationHeaderModalProps> = ({
3131
};
3232

3333
// Sign out handler
34-
const handleSignOut = async () => {
34+
const handleSignOut = async() => {
3535
try {
3636
await signOut();
3737
router.replace('/');

β€Žserver/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
optional=false

0 commit comments

Comments
Β (0)