Skip to content

Commit d038f74

Browse files
committed
formatting js properly
1 parent b66e7da commit d038f74

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ async function runServerlessDeploy() {
4040
}
4141

4242
// Main function
43-
if (require.main === module) {
44-
await installDocker()
45-
await installServerlessAndPlugins()
46-
await runServerlessDeploy()
47-
}
43+
(async () => {
44+
if (require.main === module) {
45+
await installDocker()
46+
await installServerlessAndPlugins()
47+
await runServerlessDeploy()
48+
}
49+
})();

test.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Packages
2+
var core = require('@actions/core');
3+
var execSync = require('child_process').execSync;
4+
code = execSync('sudo npm install exeq --save');
5+
var exeq = require('exeq');
6+
7+
async function one() {
8+
await exeq(
9+
'echo ONE'
10+
);
11+
}
12+
13+
async function two() {
14+
await exeq(
15+
'echo TWO'
16+
);
17+
}
18+
19+
async function three() {
20+
await exeq(
21+
'echo THREE'
22+
);
23+
}
24+
25+
// Main function
26+
(async () => {
27+
if (require.main === module) {
28+
await one()
29+
await two()
30+
await three()
31+
}
32+
})();

0 commit comments

Comments
 (0)