Skip to content

BAU: Bump com.nimbusds:oauth2-oidc-sdk from 10.13.2 to 11.20.1 #5814

BAU: Bump com.nimbusds:oauth2-oidc-sdk from 10.13.2 to 11.20.1

BAU: Bump com.nimbusds:oauth2-oidc-sdk from 10.13.2 to 11.20.1 #5814

name: Contract test
env:
PACT_USER: ${{ secrets.PACT_USER }}
PACT_PASSWORD: ${{ secrets.PACT_PASSWORD }}
PACT_URL: ${{ secrets.PACT_URL }}
# The branch name for a pull request is in a property that only exists on pull request runs. If it doesn't exist
# fall back to the branch name property for pushes.
GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
CONSUMER_APP_VERSION: ${{ github.event.pull_request.head.sha }}
PACT_BROKER_SOURCE_HEADER: ${{ secrets.PACT_BROKER_SOURCE_HEADER }}
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
paths:
- ".github/workflows/contract-tests.yml"
# Ensure these are synchronized with the paths in the check-changed-files job
- "**/src/**"
- "**/*.java"
- "**/*.gradle"
- "**/*.properties"
- "gradle*"
push:
branches:
- main
paths:
# Ensure these are synchronized with the paths in the check-changed-files job
- "**/src/**"
- "**/*.java"
- "**/*.gradle"
- "**/*.properties"
- "gradle*"
jobs:
contract-testing:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b #v4.5.0
with:
java-version: "17"
distribution: "corretto"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4
with:
gradle-version: wrapper
cache-read-only: false
- name: Run consumer contract tests
run: ./gradlew pactConsumerTests
- name: Upload pacts to broker
if: github.actor != 'dependabot[bot]' && github.event_name != 'merge_group' && github.event_name != 'push'
run: ./gradlew pactPublish
- name: Upload pacts to broker on push to main
if: github.actor != 'dependabot[bot]' && github.event_name == 'push'
env:
CONSUMER_APP_VERSION: ${{ github.sha }}
run: ./gradlew pactPublish
# - name: Verify pacts
# run: ./gradlew pactProviderTests