mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-12 17:26:22 +00:00
ci: fixup todos
This commit is contained in:
@@ -59,12 +59,11 @@ build:
|
|||||||
# - pnpm i --prefer-offline
|
# - pnpm i --prefer-offline
|
||||||
# - pnpm build:full:skip || pnpm i -r --prefer-offline
|
# - pnpm build:full:skip || pnpm i -r --prefer-offline
|
||||||
- pnpm install
|
- pnpm install
|
||||||
# TODO: something doesn't work with git here...
|
# TODO: whats the benifit for CI? something doesn't work with git here...
|
||||||
# "🦋 error Error: Failed to find where HEAD diverged from master. Does master exist?"
|
# "🦋 error Error: Failed to find where HEAD diverged from master. Does master exist?"
|
||||||
# - pnpm changeset:status
|
# - pnpm changeset:status
|
||||||
- pnpm build:full $TURBO_CACHE_BYPASS
|
- pnpm build:full $TURBO_CACHE_BYPASS
|
||||||
# pretty sure this is deprecated?
|
- .gitlab/ci/enableGitlabReviewToolbar.sh frontend/app/www/index.html "$CI_PROJECT_ID" "$CI_OPEN_MERGE_REQUESTS"
|
||||||
# TODO: - .gitlab/ci/enableGitlabReviewToolbar.sh www/index.html "$CI_PROJECT_ID" "$CI_OPEN_MERGE_REQUESTS"
|
|
||||||
- cp frontend/app/www/index.html frontend/app/www/200.html
|
- cp frontend/app/www/index.html frontend/app/www/200.html
|
||||||
- pnpm dlx surge -p frontend/app/www -d https://$CI_PROJECT_NAME-$DEPLOY_ID.surge.sh/
|
- pnpm dlx surge -p frontend/app/www -d https://$CI_PROJECT_NAME-$DEPLOY_ID.surge.sh/
|
||||||
cache:
|
cache:
|
||||||
|
|||||||
3
.gitlab/ci/enableGitlabReviewToolbar.sh
Normal file → Executable file
3
.gitlab/ci/enableGitlabReviewToolbar.sh
Normal file → Executable file
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
set -e
|
||||||
|
|
||||||
# Adds a preedefined script tag including the merge current request id to the angular web app index.html.
|
# Adds a preedefined script tag including the merge current request id to the angular web app index.html.
|
||||||
# This enables the interactive gitlab review toolbar.
|
# This enables the interactive gitlab review toolbar.
|
||||||
@@ -9,7 +10,7 @@ if echo -n $3 | grep -Eq '[0-9]+$'; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
INDEX_PATH=$(dirname $1)
|
INDEX_PATH=$(dirname $1)
|
||||||
SCRIPT_TAG="<script defer data-project-id=\"$2\" data-project-path=\"openstapps/app\" data-merge-request-id=\"$MERGE_REQUEST_ID\" data-mr-url=\"https://gitlab.com\" id=\"review-app-toolbar-script\" src=\"visual_review_toolbar.js\"></script>"
|
SCRIPT_TAG="<script defer data-project-id=\"$2\" data-project-path=\"openstapps/openstapps\" data-merge-request-id=\"$MERGE_REQUEST_ID\" data-mr-url=\"https://gitlab.com\" id=\"review-app-toolbar-script\" src=\"visual_review_toolbar.js\"></script>"
|
||||||
|
|
||||||
curl https://gitlab.com/assets/webpack/visual_review_toolbar.js --output "$INDEX_PATH/visual_review_toolbar.js" --silent
|
curl https://gitlab.com/assets/webpack/visual_review_toolbar.js --output "$INDEX_PATH/visual_review_toolbar.js" --silent
|
||||||
sed -i -e "\@</head>@i\\$SCRIPT_TAG" $1
|
sed -i -e "\@</head>@i\\$SCRIPT_TAG" $1
|
||||||
|
|||||||
0
.gitlab/ci/getRegistryBranch.sh
Normal file → Executable file
0
.gitlab/ci/getRegistryBranch.sh
Normal file → Executable file
0
.gitlab/ci/getRegistryTag.sh
Normal file → Executable file
0
.gitlab/ci/getRegistryTag.sh
Normal file → Executable file
0
.gitlab/ci/install-for-turbo.sh
Normal file → Executable file
0
.gitlab/ci/install-for-turbo.sh
Normal file → Executable file
0
.gitlab/ci/pushAsLatestVersion.sh
Normal file → Executable file
0
.gitlab/ci/pushAsLatestVersion.sh
Normal file → Executable file
0
.gitlab/ci/setup_turbo_env.sh
Normal file → Executable file
0
.gitlab/ci/setup_turbo_env.sh
Normal file → Executable file
0
.gitlab/ci/testCIScripts.sh
Normal file → Executable file
0
.gitlab/ci/testCIScripts.sh
Normal file → Executable file
@@ -10,7 +10,7 @@ deploy:
|
|||||||
- pnpm run deploy
|
- pnpm run deploy
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ./.deploy #TODO: split artifacts (keep frontend, fast expire .deploy)
|
- ./.deploy
|
||||||
- ./frontend/app/www
|
- ./frontend/app/www
|
||||||
rules: !reference [.limit_publishing]
|
rules: !reference [.limit_publishing]
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ e2e:
|
|||||||
- pnpm --filter=@openstapps/app exec cypress install
|
- pnpm --filter=@openstapps/app exec cypress install
|
||||||
- pnpm test:integration:app
|
- pnpm test:integration:app
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure #TODO: expire artifacts / only keep if job failed etc.
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
- frontend/app/cypress/videos
|
- frontend/app/cypress/videos
|
||||||
- frontend/app/cypress/screenshots
|
- frontend/app/cypress/screenshots
|
||||||
|
|||||||
Reference in New Issue
Block a user