stages:
- build
- test
- deploy
build-job:
stage: build
script:
- echo "Compiling the code..."
- echo "Compile complete."
- chmod +x ./run.sh
- ./run.sh
lint-test-job:
stage: test
script:
- echo "Linting code... This will take about 10 seconds."
- sleep 10
- echo "No lint issues found."
deploy-job:
stage: deploy
environment: production
script:
- echo "Deploying application..."
run_unit_tests:
tags:
- macos
stage: test
script:
- echo "單元測試12"
unning with gitlab-runner 16.1.0 (865283c5)
on https://gitlab.com/ RwqB7q_7t, system ID: s_c74693d52669
Preparing the "docker" executor
00:09
Preparing environment
00:03
Getting source from Git repository
00:04
Executing "step_script" stage of the job script
00:04
Cleaning up project directory and file based variables
00:03
Job succeeded
這表示您的 CI/CD 配置和作業運行正常。根據您提供的輸出,目前看來一切都運行良好。如果您需要進一步了解作業的細節或檢查作業的執行日誌,可以進一步查看 GitLab CI/CD 頁面或作業詳細信息。