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 2323 - name : Check out code into the Go module directory
2424 uses : actions/checkout@v2
2525
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+
2642 - name : Setup
2743 run : make setup
2844
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ all: check
2020.PHONY : check
2121check :
2222ifeq ($(OS ) ,Windows_NT)
23- @echo "Skipping checks on Windows, currently unsupported."
23+ go test ./...
2424else
2525 @wget -O lint-project.sh https://raw.githubusercontent.com/moov-io/infra/master/go/lint-project.sh
2626 @chmod +x ./lint-project.sh
Original file line number Diff line number Diff line change 88 "errors"
99 "io"
1010 "io/fs"
11+ "os"
1112 "strings"
1213 "testing"
1314
@@ -41,7 +42,9 @@ func TestMockClient(t *testing.T) {
4142 paths , err := client .ListFiles ("/" )
4243 require .NoError (t , err )
4344 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 ])
4548}
4649
4750func TestMockClient_ListAndOpenFiles (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments