Skip to content

Commit

Permalink
ci: Fix rate limiting error when downloading contract tests (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored May 2, 2024
1 parent 8d1236e commit 05eef02
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/manual-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 05eef02

Please sign in to comment.