Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 18 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
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 |