@@ -32,28 +32,9 @@ post_entrypoint() {
3232# ********** Pre-entrypoint helper *************
3333pre_entrypoint
3434
35- <<< <<< < before updating
36- # ********** tflint ********************
37- echo ' Starting tflint'
38- tflint --init --config ${PROJECT_PATH} /.config/.tflint.hcl
39- MYLINT=$( tflint --force --config ${PROJECT_PATH} /.config/.tflint.hcl)
40- if [ -z " $MYLINT " ]
41- then
42- echo " Success - tflint found no linting issues!"
43- else
44- echo " Failure - tflint found linting issues!"
45- echo " $MYLINT "
46- exit 1
47- fi
48- # ********** tfsec *********************
49- echo ' Starting tfsec'
50- MYTFSEC=$( tfsec . --config-file ${PROJECT_PATH} /.config/.tfsec.yml || true)
51- if [[ $MYTFSEC == * " No problems detected!" * ]];
52- =======
5335# ********** Static Test *************
5436/bin/bash ${PROJECT_PATH} /.project_automation/static_tests/static_tests.sh
5537if [ $? -eq 0 ]
56- >>>>>>> after updating
5738then
5839 echo " Static test completed"
5940 EXIT_CODE=0
6243 EXIT_CODE=1
6344fi
6445
65- <<< <<< < before updating
66- # ********** Markdown Lint **************
67- echo ' Starting markdown lint'
68- MYMDL=$( mdl --config ${PROJECT_PATH} /.config/.mdlrc .header.md examples/* /.header.md || true)
69- if [ -z " $MYMDL " ]
70- then
71- echo " Success - markdown lint found no linting issues!"
72- else
73- echo " Failure - markdown lint found linting issues!"
74- echo " $MYMDL "
75- exit 1
76- fi
77- # ********** Terraform Docs *************
78- echo ' Starting terraform-docs'
79- TDOCS=" $( terraform-docs --config ${PROJECT_PATH} /.config/.terraform-docs.yaml --lockfile=false ./) "
80- git add -N README.md
81- GDIFF=" $( git diff --compact-summary) "
82- if [ -z " $GDIFF " ]
83- then
84- echo " Success - Terraform Docs creation verified!"
85- else
86- echo " Failure - Terraform Docs creation failed, ensure you have precommit installed and running before submitting the Pull Request"
87- exit 1
88- fi
89- # ***************************************
90- echo " End of Static Tests"
91- =======
9246# ********** Post-entrypoint helper *************
9347post_entrypoint
9448
9549# ********** Exit Code *************
9650exit $EXIT_CODE
97- >>>>>>> after updating
0 commit comments