diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index 2ef3f34b..f9d8ddf3 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -13,6 +13,9 @@ inputs: run-contract-tests: description: 'Should the contract tests be run?' required: true + token: + description: 'GH token used to download SDK test harness.' + required: true runs: using: composite @@ -83,9 +86,9 @@ runs: shell: bash run: make start-contract-test-service-bg - - name: Run contract tests + - uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.1 if: ${{ inputs.run-contract-tests == 'true' }} - shell: bash - # Add a brief sleep here to ensure the test service is ready to receive - # requests - run: make run-contract-tests + with: + test_service_port: 8080 + token: ${{ inputs.token }} + extra_params: "-status-timeout 120 -skip-from ./ContractTests/testharness-suppressions.txt" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a9997ad..b48beb7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,5 +40,6 @@ jobs: xcode-version: ${{ matrix.xcode-version }} ios-sim: ${{ matrix.ios-sim }} run-contract-tests: ${{ matrix.run-contract-tests }} + token: ${{ secrets.GITHUB_TOKEN }} - uses: ./.github/actions/build-docs diff --git a/.github/workflows/manual-publish-docs.yml b/.github/workflows/manual-publish-docs.yml index ee8ebb20..0e680331 100644 --- a/.github/workflows/manual-publish-docs.yml +++ b/.github/workflows/manual-publish-docs.yml @@ -19,6 +19,7 @@ jobs: xcode-version: 14.3.1 ios-sim: 'platform=iOS Simulator,name=iPhone 14,OS=16.4' run-contract-tests: true + token: ${{ secrets.GITHUB_TOKEN }} - uses: ./.github/actions/build-docs diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index 4ee5e918..ccdb426e 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -30,6 +30,7 @@ jobs: xcode-version: 14.3.1 ios-sim: 'platform=iOS Simulator,name=iPhone 14,OS=16.4' run-contract-tests: true + token: ${{ secrets.GITHUB_TOKEN }} - uses: ./.github/actions/publish with: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f390a7b6..4f806f52 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -49,6 +49,7 @@ jobs: xcode-version: 14.3.1 ios-sim: 'platform=iOS Simulator,name=iPhone 14,OS=16.4' run-contract-tests: true + token: ${{ secrets.GITHUB_TOKEN }} - uses: ./.github/actions/build-docs if: ${{ steps.release.outputs.releases_created == 'true' }}