I have a Gitlab Pipeline configured in this way: Build >> Test >> Release
What I want to achieve is:
Skip test if:
- Test job for the same branch has succeeded in the last pipeline for the same branch run AND;
- No changes in certain files
Also always run test if:
- Test job for the same branch has failed in the last pipeline for the same branch run OR;
- This is it's first run on the same branch ever (no previous pipelines), OR;
- There are changes in certain files (same files as above)
Is this possible? If yes, how?