gitlab-ci-selective
v0.6.1
Published
Tool help to run custom shell commands depends on changes in Merge Request.
Maintainers
Readme
Tool help to run custom shell commands depends on changes in Merge Request.
Install tool:
npm i gitlab-ci-selectiveWrite config:
testing:
module1/**:
- cd module1 && npm test
- cd module1 && npm run lint
deploy:
module1/**:
- cd module1 && npm run deployThen you can run tool from CI (.gitlab-ci.yml).
npm i gitlab-ci-selective
./node_modules/.bin/gitlab-ci-selective \
--token=$CI_JOB_TOKEN \
--project=$CI_PROJECT_ID \
--sha=$CI_COMMIT_SHA \
--stage=$CI_JOB_STAGE