I want to run step in pipeline only when something has changed in specific direction. I tried with except
, only changes
and rules
and none of this has worked. Is it even possible to do that condition and if yes, how do I do it?
This is my config
test-backend:
stage: test
image: maven:latest
script:
- cd backend
- mvn $MAVEN_CLI_OPTS test
rules:
- changes:
- backend/**
and I have same config for frontend and I want to run test only when something has changed in backend and same for frontend.