Code Monkey home page Code Monkey logo

dynamodb-action's People

Contributors

dependabot[bot] avatar erickim713 avatar fishcharlie avatar miguelnv avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

dynamodb-action's Issues

Allow setting the image version

Amazon recently released amazon/dynamodb-local version 2.0.0 with breaking changes.

One breaking change I noticed and that broke our CI, is that the access_key_id can no longer contain hyphens or underscores.

Currently, rrainn/dynamodb-action always fetches the latest version of the image. It would be nice to have a way to determine the version of the image to ensure the CI doesn't break, and fall back to latest if not defined.

Instance is running, but unavailable

Hi!
When using dynamodb-action for unit tests on ubuntu-latest with actions, the instance is running, netstat shows something at 8000. But running lsof -i :8000 exits with 1 indicating the instance is unavailable.

netstat log on port 8000:
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN

Here is the workflow file:

name: Deployment
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest

strategy:
  matrix:
    node-version: [16.x]

steps:
  - uses: actions/checkout@v3
  - name: Use Node.js ${{ matrix.node-version }}
    uses: actions/setup-node@v3
    with:
      node-version: ${{ matrix.node-version }}
      cache: "npm"

  - name: Start DynamoDB
    uses: rrainn/[email protected]
    with:
      port: 8000
      cors: "*"

  - name: netstat
    run: netstat -l

  - name: Check DynamoDB
    run: lsof -i :8000

  - name: Deps
    run: npm i

  - name: Test
    run: npm run test:ci

  - name: Build
    run: npm run build:ci

The same situation is happening when using amazon/dynamodb-local with services
Here is the config:

name: Deployment
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest

services:
  dynamodb:
    image: amazon/dynamodb-local
    ports:
      - 8000:8000

strategy:
  matrix:
    node-version: [16.x]

steps:
  - uses: actions/checkout@v3
  - name: Use Node.js ${{ matrix.node-version }}
    uses: actions/setup-node@v3
    with:
      node-version: ${{ matrix.node-version }}
      cache: "npm"

  - name: netstat
    run: netstat -l

  - name: Check DynamoDB
    run: lsof -i :8000

  - name: Deps
    run: npm i

  - name: Test
    run: npm run test:ci

  - name: Build
    run: npm run build:ci

Stuck on this isssue, wondering whether there is a problem with Github-actions, DynamoDB or config, I would appreciate any assistance on this ๐Ÿ˜…

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.