File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
ShellTest :
11
11
strategy :
12
- fail-fast : true
12
+ fail-fast : false
13
13
matrix :
14
14
command :
15
- - go
16
15
- aws
16
+ - dotnet
17
+ - go
18
+ - java
19
+ - node
20
+ - perl
21
+ - php
17
22
- python
23
+ - ruby
18
24
- rustc
19
25
- zip
20
26
runs-on : ubuntu-latest
@@ -23,11 +29,11 @@ jobs:
23
29
uses : actions/checkout@v2
24
30
- name : Compile
25
31
run : bin/dockerized --compile
26
- - name : " Test: dockerized --shell ${{matrix.command}}"
27
- env :
28
- COMMAND : " ${{matrix.command}} "
32
+ - name : " dockerized --shell ${{matrix.command}}"
33
+ run : bin/dockerized -v --shell ${{matrix.command}} -c env | tee ~/shell.log
34
+ - name : " Assert "
29
35
run : |
30
- bin/dockerized --shell $COMMAND -c 'echo $HOST_HOSTNAME' | tee ~/shell.log
36
+ echo "Test --shell"
31
37
grep $(hostname) ~/shell.log
32
38
IntegrationTest :
33
39
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 8
8
util "github.com/datastack-net/dockerized/pkg/util"
9
9
"github.com/docker/compose/v2/pkg/api"
10
10
"github.com/fatih/color"
11
+ "github.com/moby/term"
11
12
"os"
12
13
"path/filepath"
13
14
"strings"
@@ -104,7 +105,7 @@ func RunCli(args []string) (err error, exitCode int) {
104
105
},
105
106
Command : commandArgs ,
106
107
AutoRemove : true ,
107
- Tty : true ,
108
+ Tty : term . IsTerminal ( os . Stdout . Fd ()) ,
108
109
WorkingDir : containerCwd ,
109
110
}
110
111
You can’t perform that action at this time.
0 commit comments