20 Commits

Author SHA1 Message Date
sinusfox d69d3905c5 Merge branch 'pages' into 'main'
Pages

See merge request SinusFox/Operations-Research-Tool!53
2024-10-14 21:49:04 +00:00
sinusfox de1e327e91 Pages 2024-10-14 21:49:04 +00:00
sinusfox 87ccd503f5 Merge branch 'pages-fix' into 'main'
Update .gitlab-ci.yml

See merge request SinusFox/Operations-Research-Tool!52
2024-10-14 20:40:39 +00:00
sinusfox f3b389dffe Update .gitlab-ci.yml 2024-10-14 20:40:21 +00:00
sinusfox fb36d2f20e Merge branch 'pages-fix' into 'main'
Update .gitlab-ci.yml

See merge request SinusFox/Operations-Research-Tool!51
2024-10-14 20:37:42 +00:00
sinusfox 1b5e9d5285 Update .gitlab-ci.yml 2024-10-14 20:37:33 +00:00
sinusfox c1a3fb6257 Merge branch 'pages-fix' into 'main'
Update .gitlab-ci.yml

See merge request SinusFox/Operations-Research-Tool!50
2024-10-14 20:28:27 +00:00
sinusfox 2d13cf0af4 Update .gitlab-ci.yml 2024-10-14 20:28:07 +00:00
sinusfox e5508dd710 Merge branch 'SinusFox-main-patch-32295' into 'main'
Update next.config.mjs

See merge request SinusFox/Operations-Research-Tool!49
2024-10-14 20:25:53 +00:00
sinusfox ce7467546f Update next.config.mjs 2024-10-14 20:25:46 +00:00
sinusfox d4ac4c2b72 Merge branch 'pages' into 'main'
Pages

See merge request SinusFox/Operations-Research-Tool!48
2024-10-14 20:21:16 +00:00
sinusfox 45967e314c Pages 2024-10-14 20:21:15 +00:00
sinusfox 11e4ba3569 Merge branch 'pages-update' into 'main'
Update package.json

See merge request SinusFox/Operations-Research-Tool!47
2024-10-14 20:15:00 +00:00
sinusfox cbd0ef34d3 Update package.json 2024-10-14 20:14:49 +00:00
sinusfox 1b8488c15d Merge branch 'pages' into 'main'
Update .gitlab-ci.yml

See merge request SinusFox/Operations-Research-Tool!46
2024-10-14 20:09:51 +00:00
sinusfox b72c6db922 Update .gitlab-ci.yml 2024-10-14 20:09:17 +00:00
sinusfox 5704326a41 Merge branch 'removing-artifacts' into 'main'
Update .gitlab-ci.yml file

See merge request SinusFox/Operations-Research-Tool!45
2024-10-14 19:03:55 +00:00
sinusfox fbaed09d14 Update .gitlab-ci.yml file 2024-10-14 19:03:41 +00:00
sinusfox 52c47cc80d Merge branch 'pipeline-update' into 'main'
Update .gitlab-ci.yml file

See merge request SinusFox/Operations-Research-Tool!44
2024-10-14 18:46:24 +00:00
sinusfox b7d67e1fc9 Update .gitlab-ci.yml file 2024-10-14 18:45:54 +00:00
3 changed files with 33 additions and 82 deletions
+13 -72
View File
@@ -1,80 +1,21 @@
# Define the stages of the pipeline image: node:20
stages:
- install
- build
- test
- deploy
# Job to install dependencies # Cache für schnellere Builds
install_dependencies: cache:
stage: install paths:
image: node:16 - node_modules/
script: - .next/cache/
before_script:
- npm ci - npm ci
cache:
paths:
- node_modules/
artifacts:
paths:
- node_modules/
# Run automatically on PRs to main
only:
- merge_requests
- main
# Allow manual execution
when: manual
# Job to build the Next.js project pages:
build_nextjs:
stage: build
image: node:16
script: script:
- npm run build - npm run build
dependencies: - mkdir -p public
- install_dependencies - cp -r out/* public
cache:
paths:
- .next/
artifacts:
paths:
- .next/
# Run automatically on PRs to main
only:
- merge_requests
- main
# Allow manual execution
when: manual
# Job to run tests
run_tests:
stage: test
image: node:16
script:
- npm test # Replace with your test command (e.g. jest)
dependencies:
- install_dependencies
artifacts:
when: always
paths:
- test-reports/
# Run automatically on PRs to main
only:
- merge_requests
- main
# Allow manual execution
when: manual
# Deploy step (runs only on merge to main)
deploy:
stage: deploy
script:
- mkdir public
- cp -r .next/* public # Example for GitLab Pages, adjust as needed
artifacts: artifacts:
paths: paths:
- public - public
# Only run on merge to main branch rules:
only: - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- main
# Allow manual execution
when: manual
+11 -2
View File
@@ -1,4 +1,13 @@
/** @type {import('next').NextConfig} */ /**
const nextConfig = {}; * @type {import('next').NextConfig}
*/
const nextConfig = {
output: 'export',
reactStrictMode: true,
images: {
unoptimized: true,
},
assetPrefix: "https://pages.fostin.de/sinusfox/Operations-Research-Tool/",
};
export default nextConfig; export default nextConfig;
+1
View File
@@ -6,6 +6,7 @@
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"export": "next export",
"lint": "next lint", "lint": "next lint",
"test": "jest --watchAll", "test": "jest --watchAll",
"test:ci": "jest --ci --coverage" "test:ci": "jest --ci --coverage"