Commit f7d3a81 1 parent de76480 commit f7d3a81 Copy full SHA for f7d3a81
File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 25
25
1.21.x,
26
26
1.22.x,
27
27
]
28
- os : [ubuntu-latest, macos-12, macos-14]
28
+ os : [ubuntu-latest, macos-12, macos-14, windows-latest ]
29
29
runs-on : ${{ matrix.os }}
30
30
steps :
31
31
- name : Checkout code
@@ -43,15 +43,26 @@ jobs:
43
43
- name : Test
44
44
if : matrix.os == 'ubuntu-latest'
45
45
run : APP_BRANCH=${APP_REF:11} DOCKER_GATEWAY_HOST=172.17.0.1 DOCKER_HOST_HTTP="http://172.17.0.1" make
46
+ - name : Set CGO_LDFLAGS / pact_ffi lib on PATH
47
+ if : matrix.os == 'windows-latest'
48
+ run : |
49
+ "CGO_LDFLAGS=-L$env:TMP" >> $env:GITHUB_ENV
50
+ "$env:TMP" >> $env:GITHUB_PATH
51
+ - name : Skip Avro plugin & test (windows)
52
+ if : matrix.os == 'windows-latest'
53
+ run : |
54
+ "SKIP_PLUGIN_AVRO=1" >> $env:GITHUB_ENV
46
55
- name : Test (unit)
47
56
if : matrix.os != 'ubuntu-latest'
48
57
run : make test
49
58
- name : Test (pact)
50
59
if : matrix.os != 'ubuntu-latest'
51
60
run : make pact_local
52
61
- name : Install goveralls
62
+ if : matrix.os != 'windows-latest'
53
63
run : go install github.com/mattn/goveralls@latest
54
64
- name : Send coverage
65
+ if : matrix.os != 'windows-latest'
55
66
run : goveralls -coverprofile=coverage.txt -service=github -parallel
56
67
- uses : actions/upload-artifact@v4
57
68
with :
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ PLUGIN_PACT_AVRO_VERSION=0.0.5
11
11
12
12
GO_VERSION? =1.22
13
13
ci :: docker deps clean bin test pact
14
+ PACT_DOWNLOAD_DIR =/tmp
15
+ ifeq ($(OS ) ,Windows_NT)
16
+ PACT_DOWNLOAD_DIR=$$TMP
17
+ endif
14
18
15
19
# Run the ci target from a developer machine with the environment variables
16
20
# set as if it was on Travis CI.
@@ -61,10 +65,6 @@ clean:
61
65
rm -rf build output dist examples/pacts
62
66
63
67
deps : download_plugins
64
- @echo " --- 🐿 Fetching build dependencies "
65
- cd /tmp; \
66
- go install github.com/mitchellh/gox@latest; \
67
- cd -
68
68
69
69
download_plugins :
70
70
@echo " --- 🐿 Installing plugins" ; \
106
106
107
107
install : bin
108
108
echo " --- 🐿 Installing Pact FFI dependencies"
109
- ./build/pact-go -l DEBUG install --libDir /tmp
109
+ ./build/pact-go -l DEBUG install --libDir $( PACT_DOWNLOAD_DIR )
110
110
111
111
pact : clean install docker
112
112
@echo " --- 🔨 Running Pact examples"
You can’t perform that action at this time.
0 commit comments