Skip to content

Commit 59be277

Browse files
authored
Test new LS action (#30)
1 parent b2fe325 commit 59be277

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.github/workflows/cloudpod_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
pip install -r requirements-dev.txt
3838
3939
- name: Start LocalStack
40-
uses: LocalStack/setup-localstack@main
40+
uses: LocalStack/setup-localstack@v0.2.0
4141
with:
4242
image-tag: ${{ inputs.release-tag || 'latest'}}
4343
use-pro: 'true'
@@ -58,6 +58,7 @@ jobs:
5858
run: |
5959
pytest tests
6060
61+
# Not using action as state is not stored as an artifact
6162
- name: Save the Cloud Pod
6263
env:
6364
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
pip install -r requirements-dev.txt
5151
5252
- name: Start LocalStack
53-
uses: LocalStack/setup-localstack@main
53+
uses: LocalStack/setup-localstack@v0.2.0
5454
with:
5555
image-tag: 'latest'
5656
use-pro: 'true'

.github/workflows/preview_create.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ jobs:
3030
pip install awscli-local
3131
3232
- name: Deploy Preview
33-
uses: LocalStack/setup-localstack/preview@main
33+
uses: LocalStack/setup-localstack@v0.2.0
3434
env:
3535
AWS_DEFAULT_REGION: us-east-1
3636
AWS_REGION: us-east-1
3737
AWS_ACCESS_KEY_ID: test
3838
AWS_SECRET_ACCESS_KEY: test
39+
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
3940
with:
4041
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
localstack-api-key: ${{ secrets.LOCALSTACK_API_KEY }}
42+
state-backend: ephemeral
43+
state-action: start
44+
skip-ephemeral-stop: 'true'
4245
preview-cmd: |
4346
# Add your custom deployment commands here.
4447
# Below is an example for the Image resizer application.

.github/workflows/test_cloudpods.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- name: Checkout
3737
uses: actions/checkout@v3
3838

39+
# Loading it manually as we're storing the state as a release and not an artifact
3940
- name: Retrieve Pod
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -54,7 +55,7 @@ jobs:
5455
python-version: '3.11'
5556

5657
- name: Start LocalStack
57-
uses: LocalStack/setup-localstack@main
58+
uses: LocalStack/setup-localstack@v0.2.0
5859
with:
5960
image-tag: ${{ matrix.tag }}
6061
use-pro: 'true'

0 commit comments

Comments
 (0)