1
- name : Create and Test LocalStack Cloud Pod
1
+ name : Create and Test LocalStack State File
2
2
3
3
on :
4
4
schedule :
@@ -17,13 +17,13 @@ permissions:
17
17
actions : read
18
18
19
19
jobs :
20
- create-pod :
21
- name : Create Cloud Pod
20
+ create-state-file :
21
+ name : Create State Files
22
22
runs-on : ubuntu-latest
23
23
permissions :
24
24
actions : write
25
25
outputs :
26
- pod_artifact_name : cloud-pod -${{ github.run_id }}
26
+ state_files_artifact_name : state-file -${{ github.run_id }}
27
27
steps :
28
28
- name : Checkout Code
29
29
uses : actions/checkout@v4
@@ -50,26 +50,26 @@ jobs:
50
50
run : |
51
51
bin/build_lambdas.sh && deployment/awslocal/deploy.sh
52
52
53
- - name : Export LocalStack State (Cloud Pod)
53
+ - name : Export LocalStack State File
54
54
id : export_state
55
55
env :
56
56
LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
57
57
run : |
58
58
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
62
62
63
- - name : Upload Cloud Pod Artifact
63
+ - name : Upload State File Artifact
64
64
uses : actions/upload-artifact@v4
65
65
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
68
68
retention-days : 1
69
69
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
73
73
runs-on : ubuntu-latest
74
74
steps :
75
75
- name : Checkout Code
@@ -91,21 +91,20 @@ jobs:
91
91
install-awslocal : ' true'
92
92
env :
93
93
DEBUG : 1
94
- POD_LOAD_CLI_TIMEOUT : 300
95
94
LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
96
95
97
- - name : Download Cloud Pod Artifact
96
+ - name : Download State File Artifact
98
97
uses : actions/download-artifact@v4
99
98
with :
100
- name : ${{ needs.create-pod .outputs.pod_artifact_name }}
99
+ name : ${{ needs.create-state-file .outputs.state_files_artifact_name }}
101
100
102
- - name : Inject Pod (Import State)
101
+ - name : Inject State File
103
102
env :
104
103
LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
105
104
run : |
106
- echo "Importing LocalStack state from cloud-pod .zip..."
105
+ echo "Importing LocalStack state from state-file .zip..."
107
106
ls -la # Check if download was successful
108
- localstack state import cloud-pod .zip
107
+ localstack state import state-file .zip
109
108
110
109
- name : Run Tests
111
110
env :
@@ -145,7 +144,3 @@ jobs:
145
144
with :
146
145
name : diagnose.json.gz
147
146
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