File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 37
37
pip install -r requirements-dev.txt
38
38
39
39
- name : Start LocalStack
40
- uses : LocalStack/setup-localstack@main
40
+ uses : LocalStack/setup-localstack@v0.2.0
41
41
with :
42
42
image-tag : ${{ inputs.release-tag || 'latest'}}
43
43
use-pro : ' true'
58
58
run : |
59
59
pytest tests
60
60
61
+ # Not using action as state is not stored as an artifact
61
62
- name : Save the Cloud Pod
62
63
env :
63
64
LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
Original file line number Diff line number Diff line change 50
50
pip install -r requirements-dev.txt
51
51
52
52
- name : Start LocalStack
53
- uses : LocalStack/setup-localstack@main
53
+ uses : LocalStack/setup-localstack@v0.2.0
54
54
with :
55
55
image-tag : ' latest'
56
56
use-pro : ' true'
Original file line number Diff line number Diff line change @@ -30,15 +30,18 @@ jobs:
30
30
pip install awscli-local
31
31
32
32
- name : Deploy Preview
33
- uses : LocalStack/setup-localstack/preview@main
33
+ uses : LocalStack/setup-localstack@v0.2.0
34
34
env :
35
35
AWS_DEFAULT_REGION : us-east-1
36
36
AWS_REGION : us-east-1
37
37
AWS_ACCESS_KEY_ID : test
38
38
AWS_SECRET_ACCESS_KEY : test
39
+ LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
39
40
with :
40
41
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'
42
45
preview-cmd : |
43
46
# Add your custom deployment commands here.
44
47
# Below is an example for the Image resizer application.
Original file line number Diff line number Diff line change 36
36
- name : Checkout
37
37
uses : actions/checkout@v3
38
38
39
+ # Loading it manually as we're storing the state as a release and not an artifact
39
40
- name : Retrieve Pod
40
41
env :
41
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
55
python-version : ' 3.11'
55
56
56
57
- name : Start LocalStack
57
- uses : LocalStack/setup-localstack@main
58
+ uses : LocalStack/setup-localstack@v0.2.0
58
59
with :
59
60
image-tag : ${{ matrix.tag }}
60
61
use-pro : ' true'
You can’t perform that action at this time.
0 commit comments