Skip to content

Commit 5cfd654

Browse files
authored
Merge pull request #133 from pactflow/fix-broken-build-due-to-env-var
fix: simplify PACT_PROVIDER env variable
2 parents c24934d + 88d8131 commit 5cfd654

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
PACT_BROKER_BASE_URL: ${{ secrets.PACT_BROKER_BASE_URL }}
9-
PACT_PROVIDER: ${{ env.PACT_PROVIDER }}
9+
PACT_PROVIDER: pactflow-example-provider
1010
PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }}
1111
REACT_APP_API_BASE_URL: http://localhost:3001
1212
GIT_COMMIT: ${{ github.sha }}
@@ -15,14 +15,6 @@ env:
1515
jobs:
1616
test:
1717
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
pact_provider: [
21-
# "pactflow-example-bi-directional-provider-dredd",
22-
# "pactflow-example-bi-directional-provider-restassured",
23-
# "pactflow-example-bi-directional-provider-postman",
24-
'pactflow-example-provider'
25-
]
2618
steps:
2719
- uses: actions/checkout@v3
2820
- uses: actions/setup-node@v3
@@ -32,12 +24,12 @@ jobs:
3224
run: npm i
3325
- name: Test
3426
env:
35-
PACT_PROVIDER: ${{ matrix.pact_provider }}
27+
PACT_PROVIDER: ${{ env.PACT_PROVIDER }}
3628
run: make test
37-
- name: Publish pacts between pactflow-example-consumer and ${{ matrix.pact_provider }}
29+
- name: Publish pacts between pactflow-example-consumer and ${{ env.PACT_PROVIDER }}
3830
run: GIT_BRANCH=${GIT_REF:11} make publish_pacts
3931
env:
40-
PACT_PROVIDER: ${{ matrix.pact_provider }}
32+
PACT_PROVIDER: ${{ env.PACT_PROVIDER }}
4133

4234
# Runs on branches as well, so we know the status of our PRs
4335
can-i-deploy:

0 commit comments

Comments
 (0)