Hi all, quick question. I have a repo that has mul...
# pact-js
n
Hi all, quick question. I have a repo that has multiple providers in it as it acts like a monolith. Regarding the github workflows that run I wanted to set up different workflows for each provider in the repo so that each workflow is able to run the tests, run can-i-deploy for that particular provider, and Record Deployment for that particular provider. As it seems like one github workflow file is not able to do this as the can-i-deploy and the record deployment commands take in the name of the provider and because there are multiple providers in one repo i'll need to separate them to ensure the can-i-deploy and the record command is run for each provider. My question is how can I run certain tests only and not all. The normal command I use to run the tests is just a simple:
npx jest --testMatch '**/*.pact.test.ts'
is there a pact command that can specify which tests to run so that when all github workflows are run there not each one is running all tests, but rather each is running their own provvider tests only.
i'm thinking to use a matrix in github workflows. just wanted your optinions
m
Not really
If your provider is a mono repo, but with different logical providers, you could (or perhaps, should) name each provider differently
n
So I am naming each one differently. That is kind of the problem. In the provider test it is named differently for each provider. This causes an issue in the github workflow because we need to be able to run the cammands for each of the providers
m
Yeah, that’s one of the challenges of a mono repo. But when the webhook fires, you should be able to get the name of the provider sub-build to run, right?