Skip to content

Commit

Permalink
Basic version
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Nov 13, 2019
1 parent 12fbe57 commit e909a6c
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: 'Start DynamoDB in GitHub Actions'
description: 'Starts DynamoDB Local in background as a Docker container for support with GitHub Actions'
runs:
using: 'node12'
main: 'main.js'
branding:
icon: 'activity'
color: 'blue'
6 changes: 6 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const core = require("@actions/core");
const exec = require("@actions/exec");

(async function (){
await exec.exec("sudo docker run --name dynamodb -d -p 8000:8000 amazon/dynamodb-local");
})();
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "dynamodb-action",
"version": "1.0.0",
"description": "Starts DynamoDB Local in background as a Docker container for support with GitHub Actions",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rrainn/dynamodb-action.git"
},
"keywords": [
"dynamodb",
"dynamo",
"aws",
"amazon",
"database",
"local",
"github",
"actions",
"action",
"docker"
],
"author": "rrainn, Inc.",
"license": "MIT",
"bugs": {
"url": "https://github.com/rrainn/dynamodb-action/issues"
},
"homepage": "https://github.com/rrainn/dynamodb-action#readme",
"dependencies": {
"@actions/core": "^1.1.3",
"@actions/exec": "^1.0.1"
}
}

0 comments on commit e909a6c

Please sign in to comment.