src/index.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 18
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ run 0 12 2
1
import * as core from '@actions/core';
2
import { exec } from '@actions/exec';
3
import Installer from './Installer';
4
5
async function run() {
6
    try {
7
        const redisVersion = core.getInput('redis-version');
8
9
        const intaller = new Installer({ exec });
10
11
        await intaller.install({ redisVersion, platform: process.platform });
12
    } catch (error) {
13
        console.error(error);
14
        core.setFailed(error.message);
15
    }
16
}
17
18
run();
19