File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 23
23
- name : Check out code into the Go module directory
24
24
uses : actions/checkout@v2
25
25
26
+ - name : Install Docker Desktop
27
+ if : runner.os == 'Windows'
28
+ run : |
29
+ choco install docker-desktop
30
+
31
+ - name : Switch to Linux Containers
32
+ if : runner.os == 'Windows'
33
+ # Tips from https://stackoverflow.com/a/57081502
34
+ run : |
35
+ C:\"Program Files"\Docker\Docker\DockerCli.exe -SwitchLinuxEngine
36
+
37
+ Stop-Service -Name Docker
38
+ Start-Service -Name Docker
39
+
40
+ docker version
41
+
26
42
- name : Setup
27
43
run : make setup
28
44
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ all: check
20
20
.PHONY : check
21
21
check :
22
22
ifeq ($(OS ) ,Windows_NT)
23
- @echo "Skipping checks on Windows, currently unsupported."
23
+ go test ./...
24
24
else
25
25
@wget -O lint-project.sh https://raw.githubusercontent.com/moov-io/infra/master/go/lint-project.sh
26
26
@chmod +x ./lint-project.sh
Original file line number Diff line number Diff line change 8
8
"errors"
9
9
"io"
10
10
"io/fs"
11
+ "os"
11
12
"strings"
12
13
"testing"
13
14
@@ -41,7 +42,9 @@ func TestMockClient(t *testing.T) {
41
42
paths , err := client .ListFiles ("/" )
42
43
require .NoError (t , err )
43
44
require .Len (t , paths , 1 )
44
- require .Equal (t , "/exists.txt" , paths [0 ])
45
+
46
+ expected := string (os .PathSeparator ) + "exists.txt"
47
+ require .Equal (t , expected , paths [0 ])
45
48
}
46
49
47
50
func TestMockClient_ListAndOpenFiles (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments