Skip to content

Commit fe0c1e8

Browse files
author
Roberto Sora
committed
force use of cmd on windows only for go getting dependencies
1 parent b7971d7 commit fe0c1e8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/test.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
operating-system: [ubuntu-18.04, windows-2019] #, macOS-10.14]
14+
operating-system: [ubuntu-18.04, windows-2019, macOS-10.14]
1515

1616
runs-on: ${{ matrix.operating-system }}
1717

@@ -28,12 +28,22 @@ jobs:
2828
go-version: '1.13'
2929

3030
- name: Install Go deps
31+
if: matrix.operating-system != 'windows-2019'
32+
run: |
33+
go get github.com/golangci/govet
34+
go get golang.org/x/lint/golint
35+
go get github.com/golang/protobuf/protoc-gen-go
36+
37+
- name: Install Go deps on windows
38+
# since 10/23/2019 pwsh is the default shell
39+
# on Windows, but pwsh fails to install protoc-gen-go
40+
# so we force cmd as default shell for this task
41+
if: matrix.operating-system == 'windows-2019'
42+
shell: cmd
3143
run: |
3244
go get github.com/golangci/govet
3345
go get golang.org/x/lint/golint
3446
go get github.com/golang/protobuf/protoc-gen-go
35-
if: matrix.operating-system == 'windows-2019'
36-
shell: cmd
3747
3848
- name: Install Taskfile
3949
uses: Arduino/actions/setup-taskfile@master

0 commit comments

Comments
 (0)