rrainn / dynamodb-action Goto Github PK
View Code? Open in Web Editor NEW๐ฆ GitHub Action - DynamoDB Local GitHub Action
Home Page: https://github.com/marketplace/actions/start-dynamodb-in-github-actions
License: MIT License
๐ฆ GitHub Action - DynamoDB Local GitHub Action
Home Page: https://github.com/marketplace/actions/start-dynamodb-in-github-actions
License: MIT License
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 ๐
Thank you for this github action!
Is it possible to cache the dynamodb image using actions/cache?
This could support Windows and Mac if, instead of using Docker, it downloaded the JAR directly and ran it using Java and https://github.com/actions/setup-java .
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.