Skip to content

Commit

Permalink
add a check to execute deployments tests only if mainnet/deployment.j…
Browse files Browse the repository at this point in the history
…son changed
  • Loading branch information
mjlescano committed Jun 15, 2021
1 parent 1044ebc commit 790a3f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .circleci/src/jobs/job-validate-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@ steps:
- checkout
- attach_workspace:
at: .
- run: git show -m HEAD --name-only --pretty=""
- run:
name: Only run when publish/deployed/mainnet/deployment.json changes
command: |
base='develop'
filename='publish/deployed/mainnet/deployment.json'
changes=$(git diff --name-status origin/$base -- $filename)
if [ -z "$changes" ]; then
circleci-agent step halt
fi;
- run: npm run test:deployments

0 comments on commit 790a3f4

Please sign in to comment.