File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-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 : Switch Docker daemon mode to Linux
27+ if : runner.os == 'Windows'
28+ # Tips from https://stackoverflow.com/a/57081502
29+ # Install-Module -Name DockerMsftProvider -Force
30+ # Install-Package -Name docker -ProviderName DockerMsftProvider -Force
31+ #
32+ # FRom https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=dockerce#windows-server-1
33+ # Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1
34+ # .\install-docker-ce.ps1
35+ run : |
36+ choco install docker-cli
37+
38+ where docker.exe
39+ where DockerCli.exe
40+
41+ docker -help
42+ DockerCli -help
43+
44+ C:\"Program Files"\Docker\Docker\DockerCli.exe -SwitchDaemon
45+
2646 - name : Setup
2747 run : make setup
2848
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