Git Product home page Git Product logo

setup-localstack's People

Contributors

harshcasper avatar lakkeger avatar lukqw avatar simonrw avatar whummer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

setup-localstack's Issues

Finish comment is added on wrong PR

This PR currently shows a "Running CI build with LocalStack" even though the preview deployment is already in place, i.e the preview action has finished.
Checking out the action execution (attached screenshot) shows that the number argument to the maintain-one-comment is 16, which is not the correct number. It should be 17, as that's the number of the PR.
image
Checking out the previous PR (#16), shows that the comment has been added there instead.

Missing preview-url option from main action

Issue Description

The main action accepts preview-url as an option, however it doesn't forward it to the finish action.

Proposed Solution

Add it as an option to the call.

Localstack is always v3.2.0

I'm using pretty much the example integration in my workflow:

      - name: Start LocalStack
        uses: LocalStack/[email protected]
        with:
          image-tag: latest
          install-awslocal: true
          use-pro: false

But no matter what I put as the image-tag, I'd always get v3.2.0, which doesn't work for us due to localstack/localstack#10621. So I must use v3.4.0 (or 2.2.0 - which we've used before).

FWIW: I'm seeing similar odd behaviour installing a specific version using pip3 install localstack==2.2.0. It would seemingly install that version, but I'd still get the above issue.

Multi-line string issues with inputs

Issue Description

The parsed JSONs the action creates for the sub-modules are not substituted/parsed properly and dropping new line characters. Hence runs are failing with such input especially if the new lines are not just for cosmetics ie in the case of preview-cmd.
Additionally " characters are causing issues.

How to reproduce

- name: Deploy Preview
        uses: LocalStack/[email protected]
        env:
          LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          state-backend: ephemeral
          state-action: start
          include-preview: 'true'
          install-awslocal: 'true'
          # Multi line commands are folding for some reason, so we enforce new lines
          # For more predictable usage, use script files
          preview-cmd: |
            npm install -g aws-cdk-local aws-cdk
            echo "HelloWorld"

Output

image

Proposed Solution

Use toJSON with every parameter in the JSON inputs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.