Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1337 This PR adds step for IT workflow. It checks with `git diff` if any modified/removed/created/moved files were in `test_runner` and/or `integration_tests` directory. ## Test Plan > How do we know the code works? No straightforward way to do this. The added step is a simple bash script that sets output either to true or false. To verify you can copy the script and run locally ``` git diff --name-only --diff-filter=AMDR HEAD^ HEAD > diffs.txt echo "---------------" cat diffs.txt echo "---------------" SHOULD_RUN='false' while IFS= read -r file do if [[ $file == test_runner/* ]] || [[ $file == integration_tests/* ]]; then SHOULD_RUN='true' break fi done < diffs.txt rm diffs.txt echo "Should run IT: ${SHOULD_RUN}" echo "::set-output name=should_run::${SHOULD_RUN}" ``` If case there are any files changed in `test_runner`/`integration_tests` `echo "::set-output name=should_run::true"` should be printed. Otherwise `echo "::set-output name=should_run::false"`
- Loading branch information