File tree Expand file tree Collapse file tree 4 files changed +25
-13
lines changed
infrastructure/terraform/components Expand file tree Collapse file tree 4 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -285,3 +285,20 @@ jobs:
285285 echo "Error: Event Schema package has changed, but new version ($local_version) is not a valid increment from latest version on main branch ($main_version)."
286286 exit 1
287287 fi
288+ test-contract-provider :
289+ name : " Test contracts (provider)"
290+ runs-on : ubuntu-latest
291+ needs : detect-event-schema-package-changes
292+ if : needs.detect-event-schema-package-changes.outputs.changed == 'true'
293+ permissions :
294+ contents : read
295+ packages : read
296+ steps :
297+ - name : " Checkout code"
298+ 299+ - name : " Install dependencies"
300+ run : make dependencies
301+ env :
302+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
303+ - name : " Run provider contract tests"
304+ run : make test-contract-producer
Original file line number Diff line number Diff line change @@ -135,18 +135,6 @@ jobs:
135135 - name : " Save the coverage check result"
136136 run : |
137137 echo "Nothing to save"
138- test-contract-provider :
139- name : " Test contracts (provider)"
140- runs-on : ubuntu-latest
141- steps :
142- - name : " Checkout code"
143- 144- - name : " Install dependencies"
145- run : make dependencies
146- env :
147- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
148- - name : " Run provider contract tests"
149- run : make test-contract-producer
150138 perform-static-analysis :
151139 name : " Perform static analysis"
152140 needs : [test-unit]
Original file line number Diff line number Diff line change 11echo " Running app pre.sh"
22
3+ original_dir=$( pwd)
4+
35cd $( git rev-parse --show-toplevel)
46
57make dependencies
@@ -9,3 +11,5 @@ npm run generate-dependencies --workspaces --if-present
911npm run lambda-build --workspaces --if-present
1012
1113$( git rev-parse --show-toplevel) /lambdas/layers/pdfjs/build.sh
14+
15+ cd $original_dir
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ echo "REGION=$REGION"
77echo " ENVIRONMENT=$ENVIRONMENT "
88echo " ACTION=$ACTION "
99
10- cd $( git rev-parse --show-toplevel)
1110
1211if [ " ${ACTION} " == " apply" ]; then
12+ original_dir=$( pwd)
13+ cd $( git rev-parse --show-toplevel)
1314 echo " Building lambdas for distribution"
1415
1516 if [ -z " $SKIP_SANDBOX_INSTALL " ]; then make dependencies; fi
@@ -19,6 +20,8 @@ if [ "${ACTION}" == "apply" ]; then
1920 npm run lambda-build --workspaces --if-present
2021
2122 $( git rev-parse --show-toplevel) /lambdas/layers/pdfjs/build.sh
23+
24+ cd $original_dir
2225else
2326 echo " Skipping lambda build for action $ACTION "
2427fi
You can’t perform that action at this time.
0 commit comments