Merge pull request #15 from pact-foundation/chore/upgrade-to-pact-rub… #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
push: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [ | |
16.x, | |
18.x, | |
20.x | |
] | |
os: [ | |
windows-2019, | |
macos-latest, | |
ubuntu-latest | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: script/ci/download-standalone-and-test.sh | |
if: runner.os != 'Windows' | |
env: | |
NODE_VERSION: ${{ matrix.node-version }} | |
PACT_BROKER_FEATURES: publish_pacts_using_old_api | |
- run: script/ci/download-standalone-and-test.sh | |
if: runner.os == 'Windows' | |
shell: bash | |
env: | |
NODE_VERSION: ${{ matrix.node-version }} | |
# The windows build agent has trouble unpacking the tar for | |
# linux, so we only download windows binaries. This means | |
# we cannot release from Windows in CI. | |
ONLY_DOWNLOAD_PACT_FOR_WINDOWS: true | |
PACT_BROKER_FEATURES: publish_pacts_using_old_api | |
LIB_ROBUST_BASH_DEBUG: true |