diff --git a/.github/workflows/cloudpod_release.yml b/.github/workflows/cloudpod_release.yml index f028746..b2caeef 100644 --- a/.github/workflows/cloudpod_release.yml +++ b/.github/workflows/cloudpod_release.yml @@ -37,7 +37,7 @@ jobs: pip install -r requirements-dev.txt - name: Start LocalStack - uses: LocalStack/setup-localstack@main + uses: LocalStack/setup-localstack@v0.2.0 with: image-tag: ${{ inputs.release-tag || 'latest'}} use-pro: 'true' @@ -58,6 +58,7 @@ jobs: run: | pytest tests + # Not using action as state is not stored as an artifact - name: Save the Cloud Pod env: LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }} diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 4ab0fa0..12bd6f3 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -50,7 +50,7 @@ jobs: pip install -r requirements-dev.txt - name: Start LocalStack - uses: LocalStack/setup-localstack@main + uses: LocalStack/setup-localstack@v0.2.0 with: image-tag: 'latest' use-pro: 'true' diff --git a/.github/workflows/preview_create.yml b/.github/workflows/preview_create.yml index d7cc46c..bf3ba18 100644 --- a/.github/workflows/preview_create.yml +++ b/.github/workflows/preview_create.yml @@ -30,15 +30,18 @@ jobs: pip install awscli-local - name: Deploy Preview - uses: LocalStack/setup-localstack/preview@main + uses: LocalStack/setup-localstack@v0.2.0 env: AWS_DEFAULT_REGION: us-east-1 AWS_REGION: us-east-1 AWS_ACCESS_KEY_ID: test AWS_SECRET_ACCESS_KEY: test + LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }} with: github-token: ${{ secrets.GITHUB_TOKEN }} - localstack-api-key: ${{ secrets.LOCALSTACK_API_KEY }} + state-backend: ephemeral + state-action: start + skip-ephemeral-stop: 'true' preview-cmd: | # Add your custom deployment commands here. # Below is an example for the Image resizer application. diff --git a/.github/workflows/test_cloudpods.yml b/.github/workflows/test_cloudpods.yml index 430b5d5..07da849 100644 --- a/.github/workflows/test_cloudpods.yml +++ b/.github/workflows/test_cloudpods.yml @@ -36,6 +36,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 + # Loading it manually as we're storing the state as a release and not an artifact - name: Retrieve Pod env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -54,7 +55,7 @@ jobs: python-version: '3.11' - name: Start LocalStack - uses: LocalStack/setup-localstack@main + uses: LocalStack/setup-localstack@v0.2.0 with: image-tag: ${{ matrix.tag }} use-pro: 'true'