Skip to content

Commit e0c2dbd

Browse files
committed
CCM-11029: cd back to original location
1 parent 9726c71 commit e0c2dbd

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

.github/workflows/stage-1-commit.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
uses: actions/[email protected]
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

.github/workflows/stage-2-test.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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-
uses: actions/[email protected]
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]

infrastructure/terraform/components/app/pre.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
echo "Running app pre.sh"
22

3+
original_dir=$(pwd)
4+
35
cd $(git rev-parse --show-toplevel)
46

57
make dependencies
@@ -9,3 +11,5 @@ npm run generate-dependencies --workspaces --if-present
911
npm run lambda-build --workspaces --if-present
1012

1113
$(git rev-parse --show-toplevel)/lambdas/layers/pdfjs/build.sh
14+
15+
cd $original_dir

infrastructure/terraform/components/sandbox/pre.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ echo "REGION=$REGION"
77
echo "ENVIRONMENT=$ENVIRONMENT"
88
echo "ACTION=$ACTION"
99

10-
cd $(git rev-parse --show-toplevel)
1110

1211
if [ "${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
2225
else
2326
echo "Skipping lambda build for action $ACTION"
2427
fi

0 commit comments

Comments
 (0)