Skip to content

Commit 443aaf9

Browse files
committed
VED-812: Only restore relevant caches. Always run batch e2e tests.
1 parent 44ebcb4 commit 443aaf9

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/deploy-backend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ jobs:
137137
with:
138138
python-version: 3.11
139139
cache: "poetry"
140+
cache-dependency-path: |
141+
lambdas/mns_subscription/poetry.lock
142+
lambdas/shared/poetry.lock
140143
141144
- name: Create MNS Subscription
142145
if: ${{ inputs.environment == 'dev' && inputs.create_mns_subscription }}

.github/workflows/pr-teardown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
with:
5757
python-version: 3.11
5858
cache: "poetry"
59+
cache-dependency-path: |
60+
lambdas/mns_subscription/poetry.lock
61+
lambdas/shared/poetry.lock
5962
6063
- name: Unsubscribe MNS
6164
working-directory: "./lambdas/mns_subscription"

.github/workflows/run-e2e-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ env:
3838
ENVIRONMENT: ${{ inputs.environment }}
3939
SUB_ENVIRONMENT: ${{ inputs.sub_environment }}
4040

41+
permissions:
42+
id-token: write
43+
contents: read
44+
4145
jobs:
4246
e2e-tests:
4347
runs-on: ubuntu-latest
4448
environment:
4549
name: ${{ inputs.environment }}
4650
env: # Sonarcloud - do not allow direct usage of untrusted data
4751
APIGEE_USERNAME: ${{ vars.APIGEE_USERNAME }}
48-
permissions:
49-
id-token: write
50-
contents: read
5152
steps:
5253
- name: Connect to AWS
5354
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838
@@ -86,6 +87,7 @@ jobs:
8687
with:
8788
python-version: 3.11
8889
cache: "poetry"
90+
cache-dependency-path: "e2e/poetry.lock"
8991

9092
- name: Install e2e test dependencies
9193
working-directory: e2e
@@ -126,12 +128,10 @@ jobs:
126128
127129
batch-e2e-tests:
128130
needs: [e2e-tests]
131+
if: ${{ always() }}
129132
runs-on: ubuntu-latest
130133
environment:
131134
name: ${{ inputs.environment }}
132-
permissions:
133-
id-token: write
134-
contents: read
135135
steps:
136136
- name: Connect to AWS
137137
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838
@@ -149,6 +149,7 @@ jobs:
149149
with:
150150
python-version: 3.11
151151
cache: "poetry"
152+
cache-dependency-path: "e2e_batch/poetry.lock"
152153

153154
- name: Install e2e test dependencies
154155
working-directory: e2e_batch

0 commit comments

Comments
 (0)