Skip to content

Commit

Permalink
chore: re-add generate-contract-test job
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAlJarrah committed Oct 30, 2024
1 parent 99c50f2 commit fa64c0c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,23 @@ jobs:
needs: [ generate-test-sdk ]
uses: "ExpediaGroup/rapid-java-sdk/.github/workflows/run-examples.yaml@main"
with:
source: 'specs'
sdk_version: ${{ needs.generate-test-sdk.outputs.version }}
jdk: ${{ matrix.jdk }}
source: 'specs'
secrets:
KEY: ${{ secrets.RAPID_KEY }}
SECRET: ${{ secrets.RAPID_SECRET }}
strategy:
matrix:
jdk: [ 8, 11, 17, 21 ]

generate-contract-tests:
needs: [ generate-test-sdk ]
uses: ./.github/workflows/selfserve-generate-contract-test-sources.yaml
with:
artifact_key: 'sdk-test'
repo_key: 'sdk-repo'
templates_key: 'test-templates'
specs_key: 'transformedSpecs'
namespace: ${{ inputs.sdk_namespace }}
generation_options: '--version 0.0.1 --target-group com.expediagroup --target-artifact ${{ inputs.sdk_artifact_id }} --target-version ${{ inputs.sdk_version }} -m 5' # TODO: remove -m param

run-rapid-contract-tests:
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && inputs.sdk_namespace == 'rapid'
Expand Down

0 comments on commit fa64c0c

Please sign in to comment.