Skip to content

Commit 31c3a0d

Browse files
committed
ci: test on multi-os / only publish on linux
1 parent 3818ddc commit 31c3a0d

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,13 @@ env:
1313

1414
jobs:
1515
test:
16-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
# note currently PACT_PROVIDER isn't used in the code
20-
pact_provider:
21-
[
22-
"pactflow-example-provider-python",
23-
# "pactflow-example-bi-directional-provider-dredd",
24-
# "pactflow-example-bi-directional-provider-restassured",
25-
# "pactflow-example-bi-directional-provider-postman",
26-
# "pactflow-example-bi-directional-provider",
27-
# 'pactflow-example-bi-directional-provider-dotnet'
28-
]
19+
os: [ubuntu-latest, windows-latest, macos-latest]
20+
defaults:
21+
run:
22+
shell: bash
2923
steps:
3024
- uses: actions/checkout@v4
3125
- uses: actions/setup-python@v4
@@ -35,12 +29,9 @@ jobs:
3529
- run: pip install -r requirements.txt
3630
- name: Test pactflow-example-consumer-python against ${{ matrix.pact_provider }}
3731
run: make test
38-
env:
39-
PACT_PROVIDER: ${{ matrix.pact_provider }}
4032
- name: Publish pacts
4133
run: GIT_BRANCH=${GIT_REF:11} make publish_pacts
42-
env:
43-
PACT_PROVIDER: ${{ matrix.pact_provider }}
34+
if: matrix.os == 'ubuntu-latest'
4435

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

0 commit comments

Comments
 (0)