Update .gitlab-ci.yml file
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@ stages:
|
|||||||
# Job to install dependencies
|
# Job to install dependencies
|
||||||
install_dependencies:
|
install_dependencies:
|
||||||
stage: install
|
stage: install
|
||||||
image: node:16
|
image: node:20
|
||||||
script:
|
script:
|
||||||
- npm ci
|
- npm ci
|
||||||
cache:
|
cache:
|
||||||
@@ -27,7 +27,7 @@ install_dependencies:
|
|||||||
# Job to build the Next.js project
|
# Job to build the Next.js project
|
||||||
build_nextjs:
|
build_nextjs:
|
||||||
stage: build
|
stage: build
|
||||||
image: node:16
|
image: node:20
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -48,7 +48,7 @@ build_nextjs:
|
|||||||
# Job to run tests
|
# Job to run tests
|
||||||
run_tests:
|
run_tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: node:16
|
image: node:20
|
||||||
script:
|
script:
|
||||||
- npm test # Replace with your test command (e.g. jest)
|
- npm test # Replace with your test command (e.g. jest)
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user