From b4f49f3d84ba28ad9ac086dccd8e77b8f05de7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20P=C3=B6hls?= Date: Tue, 17 Dec 2019 15:42:22 +0100 Subject: [PATCH] refinements --- .eslintrc.json | 15 --------------- package.json | 17 +---------------- start-redis.js | 3 +-- 3 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index ae29ccd..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "env": { - "es6": true, - "node": true - }, - "extends": [ - "standard" - ], - "plugins": [ - "standard" - ], - "parserOptions": { - "ecmaVersion": 2018 - } -} diff --git a/package.json b/package.json index c0fc4e4..ec8570f 100644 --- a/package.json +++ b/package.json @@ -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 ", "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" } } diff --git a/start-redis.js b/start-redis.js index 068516b..9a17e5a 100644 --- a/start-redis.js +++ b/start-redis.js @@ -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')}`) }