chore: Enhance CI workflow with comprehensive checks for linting, type checking, and testing
CI / skip-ci-check (pull_request) Successful in 1m34s
CI / lint-and-type-check (pull_request) Failing after 2m13s
CI / python-lint (pull_request) Failing after 2m1s
CI / test-backend (pull_request) Successful in 3m45s
CI / build (pull_request) Successful in 4m43s
CI / secret-scanning (pull_request) Successful in 1m43s
CI / dependency-scan (pull_request) Successful in 1m41s
CI / sast-scan (pull_request) Successful in 2m50s
CI / workflow-summary (pull_request) Successful in 1m34s
CI / skip-ci-check (pull_request) Successful in 1m34s
CI / lint-and-type-check (pull_request) Failing after 2m13s
CI / python-lint (pull_request) Failing after 2m1s
CI / test-backend (pull_request) Successful in 3m45s
CI / build (pull_request) Successful in 4m43s
CI / secret-scanning (pull_request) Successful in 1m43s
CI / dependency-scan (pull_request) Successful in 1m41s
CI / sast-scan (pull_request) Successful in 2m50s
CI / workflow-summary (pull_request) Successful in 1m34s
This commit updates the CI workflow to include additional checks for ESLint, type checking, and backend tests. It introduces steps to validate the outcomes of these checks, ensuring that any failures will cause the job to fail. This enhancement improves the overall quality control in the CI pipeline, requiring developers to address issues before proceeding with the build process.
This commit is contained in:
@@ -32,7 +32,7 @@ export async function GET(request: NextRequest) {
|
||||
where: { userId },
|
||||
select: { photoId: true },
|
||||
});
|
||||
favoritePhotoIds = favorites.map(f => f.photoId);
|
||||
favoritePhotoIds = favorites.map((f: { photoId: number }) => f.photoId);
|
||||
|
||||
// If user has no favorites, return empty result
|
||||
if (favoritePhotoIds.length === 0) {
|
||||
|
||||
@@ -279,7 +279,7 @@ export async function DELETE(
|
||||
prismaAuth.photoFavorite.count({ where: { userId } }),
|
||||
]);
|
||||
|
||||
const finalHasRelatedRecords = finalCheck.some(count => count > 0);
|
||||
const finalHasRelatedRecords = finalCheck.some((count: number) => count > 0);
|
||||
|
||||
if (finalHasRelatedRecords) {
|
||||
console.log(`[DELETE User ${userId}] Final check found related records, deactivating instead`);
|
||||
|
||||
Reference in New Issue
Block a user