Skip to content

Commit 9efbe29

Browse files
authored
rename cloud pod references to state files (#44)
1 parent 7354e0b commit 9efbe29

File tree

1 file changed

+19
-24
lines changed

1 file changed

+19
-24
lines changed

.github/workflows/test_cloudpods.yml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create and Test LocalStack Cloud Pod
1+
name: Create and Test LocalStack State File
22

33
on:
44
schedule:
@@ -17,13 +17,13 @@ permissions:
1717
actions: read
1818

1919
jobs:
20-
create-pod:
21-
name: Create Cloud Pod
20+
create-state-file:
21+
name: Create State Files
2222
runs-on: ubuntu-latest
2323
permissions:
2424
actions: write
2525
outputs:
26-
pod_artifact_name: cloud-pod-${{ github.run_id }}
26+
state_files_artifact_name: state-file-${{ github.run_id }}
2727
steps:
2828
- name: Checkout Code
2929
uses: actions/checkout@v4
@@ -50,26 +50,26 @@ jobs:
5050
run: |
5151
bin/build_lambdas.sh && deployment/awslocal/deploy.sh
5252
53-
- name: Export LocalStack State (Cloud Pod)
53+
- name: Export LocalStack State File
5454
id: export_state
5555
env:
5656
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
5757
run: |
5858
echo "Exporting LocalStack state..."
59-
localstack state export cloud-pod.zip
60-
ls -la cloud-pod.zip # Verify the file exists
61-
echo "pod_artifact_name=cloud-pod-${{ github.run_id }}" >> $GITHUB_OUTPUT
59+
localstack state export state-file.zip
60+
ls -la state-file.zip # Verify the file exists
61+
echo "state_files_artifact_name=state-file-${{ github.run_id }}" >> $GITHUB_OUTPUT
6262
63-
- name: Upload Cloud Pod Artifact
63+
- name: Upload State File Artifact
6464
uses: actions/upload-artifact@v4
6565
with:
66-
name: ${{ steps.export_state.outputs.pod_artifact_name }}
67-
path: cloud-pod.zip
66+
name: ${{ steps.export_state.outputs.state_files_artifact_name }}
67+
path: state-file.zip
6868
retention-days: 1
6969

70-
test-pod:
71-
name: Test Cloud Pod
72-
needs: create-pod
70+
test-state-file:
71+
name: Test State File
72+
needs: create-state-file
7373
runs-on: ubuntu-latest
7474
steps:
7575
- name: Checkout Code
@@ -91,21 +91,20 @@ jobs:
9191
install-awslocal: 'true'
9292
env:
9393
DEBUG: 1
94-
POD_LOAD_CLI_TIMEOUT: 300
9594
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
9695

97-
- name: Download Cloud Pod Artifact
96+
- name: Download State File Artifact
9897
uses: actions/download-artifact@v4
9998
with:
100-
name: ${{ needs.create-pod.outputs.pod_artifact_name }}
99+
name: ${{ needs.create-state-file.outputs.state_files_artifact_name }}
101100

102-
- name: Inject Pod (Import State)
101+
- name: Inject State File
103102
env:
104103
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
105104
run: |
106-
echo "Importing LocalStack state from cloud-pod.zip..."
105+
echo "Importing LocalStack state from state-file.zip..."
107106
ls -la # Check if download was successful
108-
localstack state import cloud-pod.zip
107+
localstack state import state-file.zip
109108
110109
- name: Run Tests
111110
env:
@@ -145,7 +144,3 @@ jobs:
145144
with:
146145
name: diagnose.json.gz
147146
path: ./diagnose.json.gz
148-
149-
- name: Prevent Workflow from becoming Stale
150-
if: always() && github.ref == 'refs/heads/main'
151-
uses: liskin/gh-workflow-keepalive@v1

0 commit comments

Comments
 (0)