Skip to content

Commit 4d960ca

Browse files
committed
ci: Upgrade docker-compose to v2 and upgrade npm packages.
Fixes #12 Fixes #9
1 parent cf2e51f commit 4d960ca

File tree

1,277 files changed

+90169
-58973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,277 files changed

+90169
-58973
lines changed

main.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const core = require("@actions/core");
2-
const compose = require("docker-compose");
32
const utils = require("./utils");
4-
//const path = require("path");
3+
const { upMany, upAll, exec } = require("docker-compose/dist/v2");
54

65
try {
76
const composeFiles = utils.parseComposeFiles(
@@ -21,9 +20,7 @@ try {
2120
};
2221

2322
const promise =
24-
services.length > 0
25-
? compose.upMany(services, options)
26-
: compose.upAll(options);
23+
services.length > 0 ? upMany(services, options) : upAll(options);
2724

2825
promise
2926
.then(() => {
@@ -39,7 +36,7 @@ try {
3936

4037
if (testCommand && testContainer) {
4138
setTimeout(() => {
42-
const test = compose.exec(testContainer, testCommand, {
39+
const test = exec(testContainer, testCommand, {
4340
config: composeFiles,
4441
});
4542

node_modules/.bin/yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)