Update .gitlab-ci.yml file #63

Merged
SinusFox merged 1 commits from removing-artifacts into main 2024-10-14 19:03:56 +00:00
-13
View File
@@ -14,9 +14,6 @@ install_dependencies:
cache: cache:
paths: paths:
- node_modules/ - node_modules/
artifacts:
paths:
- node_modules/
# Run automatically on PRs to main # Run automatically on PRs to main
only: only:
- merge_requests - merge_requests
@@ -35,9 +32,6 @@ build_nextjs:
cache: cache:
paths: paths:
- .next/ - .next/
artifacts:
paths:
- .next/
# Run automatically on PRs to main # Run automatically on PRs to main
only: only:
- merge_requests - merge_requests
@@ -53,10 +47,6 @@ run_tests:
- npm test # Replace with your test command (e.g. jest) - npm test # Replace with your test command (e.g. jest)
dependencies: dependencies:
- install_dependencies - install_dependencies
artifacts:
when: always
paths:
- test-reports/
# Run automatically on PRs to main # Run automatically on PRs to main
only: only:
- merge_requests - merge_requests
@@ -70,9 +60,6 @@ deploy:
script: script:
- mkdir public - mkdir public
- cp -r .next/* public # Example for GitLab Pages, adjust as needed - cp -r .next/* public # Example for GitLab Pages, adjust as needed
artifacts:
paths:
- public
# Only run on merge to main branch # Only run on merge to main branch
only: only:
- main - main