refinements

pull/6/head
Marcus Pöhls 2019-12-17 15:42:22 +01:00
parent 58ee66f6f5
commit b4f49f3d84
3 changed files with 2 additions and 33 deletions

View File

@ -1,15 +0,0 @@
{
"env": {
"es6": true,
"node": true
},
"extends": [
"standard"
],
"plugins": [
"standard"
],
"parserOptions": {
"ecmaVersion": 2018
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@supercharge/redis-github-action",
"description": "Redis server in a GitHub Action",
"version": "1.0.0",
"version": "0.0.0",
"author": "Marcus Pöhls <marcus@superchargejs.com>",
"bugs": {
"url": "https://github.com/superchargejs/redis-github-action/issues"
@ -10,14 +10,6 @@
"@actions/core": "~1.2.0",
"@actions/exec": "~1.0.2"
},
"devDependencies": {
"eslint": "~6.7.2",
"eslint-config-standard": "~14.1.0",
"eslint-plugin-import": "~2.19.1",
"eslint-plugin-node": "~10.0.0",
"eslint-plugin-promise": "~4.2.1",
"eslint-plugin-standard": "~4.0.1"
},
"engines": {
"node": ">=8"
},
@ -32,12 +24,5 @@
"repository": {
"type": "git",
"url": "git+https://github.com/superchargejs/redis-github-action.git"
},
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"list:tests": "lab --assert @hapi/code --dry --verbose",
"test": "lab --assert @hapi/code --leaks --coverage --lint --reporter console --output stdout --reporter html --output ./coverage/coverage.html",
"test:single": "lab --assert @hapi/code --leaks --lint --id"
}
}

View File

@ -1,8 +1,7 @@
const core = require('@actions/core')
const { exec } = require('@actions/exec')
async function run (){
await exec(`npm install`)
async function run () {
await exec(`docker run --name redis --publish 6379:6379 --detach redis:${core.getInput('redis-version')}`)
}