First time posting here.
I’m just wondering how I should use a stage that runs only for merge_requests and for it to use a dependency. Very simply, I have an initial
build stage and a
test:pr stage that requires the build artifact. But I find my
test:pr stage runs as detached. I did have a look in the docs, but haven’t figured out how to do it, so wondered if someone could help correct my ci file. nb We are self hosting Gitlab free version
stages: - build - dev # omitted some other stages for brevity build:ranorex: stage: build script: - nuget restore $CI_PROJECT_DIR\MySolution.sln - msbuild $CI_PROJECT_DIR\MySolution.sln artifacts: expire_in: 1 week paths: - $CI_PROJECT_DIR\User_Interfaces___Regression tags: - ranorex test:pr: stage: dev script: - User_Interfaces___Regression/bin/Debug/User_Interfaces___Regression.exe /a:["gitlab"] /testsuite:User_Interfaces___Regression.rxtst /ju artifacts: expire_in: 1 week reports: junit: $CI_PROJECT_DIR\*.junit.xml only: refs: - merge_requests variables: - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "qa" dependencies: - build:ranorex tags: - ranorex // omitted the other stages for brevity