diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1c67e9c24e7637af20e288b03aeec6a9bee4c5f..c871165a53a46fdd8348977020b148fa02946f08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,34 +18,34 @@ image: node:20 stages: # List of stages for jobs, and their order of execution - # - build - # - test + - build + - test - deploy -# build-job: # This job runs in the build stage, which runs first. -# stage: build -# script: -# - echo "Building application..." -# - npm install -# - npx prisma generate -# - npm run build -# - echo "Application successfully built." +build-job: # This job runs in the build stage, which runs first. + stage: build + script: + - echo "Building application..." + - npm install + - npx prisma generate + - npm run build + - echo "Application successfully built." -# unit-test-job: # This job runs in the test stage. -# stage: test # It only starts when the job in the build stage completes successfully. -# script: -# - echo "Running unit tests..." -# - npm install -# - npm run test -# - echo "Done testing." +unit-test-job: # This job runs in the test stage. + stage: test # It only starts when the job in the build stage completes successfully. + script: + - echo "Running unit tests..." + - npm install + - npm run test + - echo "Done testing." -# lint-test-job: # This job also runs in the test stage. -# stage: test # It can run at the same time as unit-test-job (in parallel). -# script: -# - echo "Linting code... This will take about 10 seconds." -# - npm install -# - npm run lint -# - echo "Done linting." +lint-test-job: # This job also runs in the test stage. + stage: test # It can run at the same time as unit-test-job (in parallel). + script: + - echo "Linting code... This will take about 10 seconds." + - npm install + - npm run lint + - echo "Done linting." deploy-job: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. diff --git a/app/(content)/(home)/home/page.tsx b/app/(content)/(home)/home/page.tsx index fe63738edf9ffbc83613d7429f5361cd4b390c7a..d159dec93d31a425d2d95cafcdb5c7c75e31e0e3 100644 --- a/app/(content)/(home)/home/page.tsx +++ b/app/(content)/(home)/home/page.tsx @@ -4,7 +4,6 @@ import { Gweets } from "@/components/gweets/components/gweets" import ScrollToTop from "@/components/scroll-to-top" import { Trends } from "@/components/trends/components/trends" import { Card } from "@/components/ui/card" -import getURL from "@/lib/utils" export default async function HomePage() { return ( @@ -15,7 +14,6 @@ export default async function HomePage() { <ScrollToTop /> </div> <div className="w-full space-y-6 flex flex-col"> - <div>{getURL(`/api/users/`)}</div> <CreateGweet /> <Gweets /> </div>