Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: LocalStack Test
on:
push:
branches:
- 'main'
pull_request:
paths-ignore:
- ./*.md
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A GitHub Action to setup [LocalStack](https://github.com/localstack/localstack)

```yml
- name: Start LocalStack
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
image-tag: 'latest'
install-awslocal: 'true'
Expand All @@ -31,15 +31,15 @@ If the key is not found LocalStack by default falls back to the CE edition and d
### Install only CLIs and startup later
```yml
- name: Install LocalStack CLIs
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
skip-startup: 'true'
install-awslocal: 'true'

...

- name: Start LocalStack
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
image-tag: 'latest'
env:
Expand All @@ -49,7 +49,7 @@ If the key is not found LocalStack by default falls back to the CE edition and d
### Save a state later on in the pipeline
```yml
- name: Save LocalStack State
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
install-awslocal: 'true'
state-backend: cloud-pods
Expand All @@ -63,7 +63,7 @@ If the key is not found LocalStack by default falls back to the CE edition and d
### Load an already saved state
```yml
- name: Start LocalStack and Load State
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
install-awslocal: 'true'
state-backend: cloud-pods
Expand All @@ -78,7 +78,7 @@ If the key is not found LocalStack by default falls back to the CE edition and d

### Manage Application Previews (on an Ephemeral Instance)
```yml
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
state-backend: ephemeral
Expand All @@ -93,7 +93,7 @@ uses: LocalStack/setup-localstack@v0.2.3
...

with:
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
state-backend: ephemeral
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- uses: actions/checkout@v3

- name: Start LocalStack
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
image-tag: 'latest'
install-awslocal: 'true'
Expand All @@ -156,7 +156,7 @@ jobs:
echo "Test Execution complete!"

- name: Save LocalStack State
uses: LocalStack/setup-localstack@v0.2.3
uses: LocalStack/setup-localstack@v0.2.5
with:
state-backend: local
state-action: save
Expand Down
4 changes: 2 additions & 2 deletions ephemeral/shutdown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: composite
steps:
- name: Download PR artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: pr-id

Expand Down Expand Up @@ -69,7 +69,7 @@ runs:
retry shutdown_instance

- name: Update status comment
uses: actions-cool/maintain-one-comment@v3.1.1
uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
with:
token: ${{ inputs.github-token }}
body: |
Expand Down
4 changes: 2 additions & 2 deletions ephemeral/startup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
}

- name: Download PR artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: pr-id

Expand Down Expand Up @@ -143,7 +143,7 @@ runs:
echo "AWS_ENDPOINT_URL=$endpointUrl" >> $GITHUB_ENV

- name: Upload preview instance URL
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: preview-instance-url
path: ./ls-preview-url.txt
Expand Down
10 changes: 5 additions & 5 deletions finish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ runs:
# Try to get pr artifact from current workflow
- name: Download current PR artifact
id: get-pr-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
continue-on-error: true
with:
name: pr-id

# If the above fails, try to get the latest pr artifact from the PR related workflows
- name: Download latest PR artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@0bd50d53a6d7fb5cb921e607957e9cc12b4ce392 # v12
if: ${{ steps.get-pr-artifact.outcome == 'failure' }}
with:
name: pr-id
Expand All @@ -44,13 +44,13 @@ runs:
- name: Download preview instance URL
id: get-preview-instance-url-artifact
if: inputs.include-preview
uses: actions/download-artifact@v4
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: preview-instance-url

# If the above fails, try to get the latest pr artifact from the PR related workflows
- name: Download latest PR artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@0bd50d53a6d7fb5cb921e607957e9cc12b4ce392 # v12
if: ${{ steps.get-preview-instance-url-artifact.outcome == 'failure' }}
with:
name: preview-instance-url
Expand All @@ -71,7 +71,7 @@ runs:
fi

- name: Update status comment
uses: actions-cool/maintain-one-comment@v3.1.1
uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
with:
token: ${{ inputs.github-token }}
body: |
Expand Down
6 changes: 3 additions & 3 deletions local/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ runs:
- name: Download current workflow's Local State artifact
id: get-state-artifact
if: ${{ inputs.action == 'load' }}
uses: actions/download-artifact@v4
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 #v7
continue-on-error: true
with:
name: ${{ inputs.name }}

# If the above fails, try to get the latest artifact from given workflow
- name: Download latest Local State artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@0bd50d53a6d7fb5cb921e607957e9cc12b4ce392 #v12
if: ${{ inputs.action == 'load' && steps.get-state-artifact.outcome == 'failure' }}
with:
name: ${{ inputs.name }}
Expand All @@ -49,7 +49,7 @@ runs:
ACTION: "${{ inputs.action }}"

- name: Upload LocalStack State
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
if: ${{ inputs.action == 'save' }}
with:
name: ${{ inputs.name }}
Expand Down
4 changes: 2 additions & 2 deletions prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ runs:
run: echo ${{ github.event.number }} > ./pr-id.txt

- name: Upload PR number
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: pr-id
path: ./pr-id.txt

- name: Create initial PR comment
uses: actions-cool/maintain-one-comment@v3.1.1
uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3
with:
token: ${{ inputs.github-token }}
body: |
Expand Down