Hey guys, I’m running into a basic issue while run...
# general
z
Hey guys, I’m running into a basic issue while running provider side tests in the CI I’m using pact-go and using pact-ruby-standalone in my local machine. However, while running the tests in ci, it returns -
exec: "pact-provider-verifier": executable file not found in $PATH
Do I need to run
pactfoundation/pact-cli:latest
as part of my application container before running the pact test?
👋 2
m
No, you need the CLO tools installed on your CI also
Pact won't use the docker variant as part of its test run
z
Thanks Matt for the response I’m a bit lost, do we have any example? :) We are using GitHub actions
y
Hey got an example I made for another member recently https://github.com/YOU54F/go-pact-test
m
You need to install the CLI dependencies for Pact Go 1.x.x to work. In the Pact Go project, we use a make target to do this • https://github.com/pact-foundation/pact-go/blob/master/Makefile#L32 (installs into the relative
pact
folder) • We also add that
pact
folder to the
PATH
environment variable during the build so that it is available to the runtime: https://github.com/pact-foundation/pact-go/blob/master/make/config.mk#L1 If you’re using 2.x.x, you don’t need to install these for the tests to run (i.e. Pact go won’t use them), but you probably want them installed anyway to publish pact files etc.