Skip to content

Commit

Permalink
skip avro windows
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Mar 2, 2024
1 parent 472f833 commit bd64154
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ jobs:
# - name: Test examples
# if: runner.os == 'Linux'
# run: APP_BRANCH=${APP_REF:11} DOCKER_GATEWAY_HOST=172.17.0.1 DOCKER_HOST_HTTP="http://172.17.0.1" make ci_pact

- if: runner.os == 'Windows'
run: rm 'C:\Windows\System32\bash.exe'


- name: Unit Test
if: runner.os != 'Linux'
run: make ci_unit_no_docker
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ PACT_CLI="docker run --rm -v ${PWD}:${PWD} -e PACT_BROKER_BASE_URL=$(DOCKER_HOST

ifeq ($(OS),Windows_NT)
EXE=.exe
SKIP_AVRO=1
endif
ci:: docker deps clean bin test pact
ci_unit:: deps clean bin test
Expand Down Expand Up @@ -54,8 +55,9 @@ deps: download_plugins
download_plugins:
@echo "--- 🐿 Installing plugins"; \
./scripts/install-cli.sh
$$HOME/.pact/bin/pact-plugin-cli$(EXE) -y install https://github.com/austek/pact-avro-plugin/releases/tag/v0.0.5

if [ $${SKIP_AVRO:-0} -ne 1 ]; then \
$$HOME/.pact/bin/pact-plugin-cli$(EXE) -y install https://github.com/austek/pact-avro-plugin/releases/tag/v0.0.5; \
fi
cli:
@if [ ! -d pact/bin ]; then\
echo "--- 🐿 Installing Pact CLI dependencies"; \
Expand Down
4 changes: 2 additions & 2 deletions examples/avro/avro_consumer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build consumer
// +build consumer
//go:build consumer || darwin || linux
// +build consumer darwin linux

package avro

Expand Down
4 changes: 2 additions & 2 deletions examples/avro/avro_provider_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build provider
// +build provider
//go:build provider || darwin || linux
// +build provider darwin linux

package avro

Expand Down
3 changes: 2 additions & 1 deletion examples/avro/codec.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//go:build darwin || linux
package avro

import (

"os"

"github.com/linkedin/goavro/v2"
)

Expand Down
2 changes: 2 additions & 0 deletions examples/avro/user.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build darwin || linux

package avro

type User struct {
Expand Down

0 comments on commit bd64154

Please sign in to comment.