From 94fa5c18298feec62bf84f39f969ec9e01417dc6 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Thu, 2 May 2024 12:06:24 -0400 Subject: [PATCH] ci: Fix rate limiting error when downloading contract tests --- .github/actions/contract-tests/action.yml | 11 ++++++++--- .github/workflows/ci.yml | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/actions/contract-tests/action.yml b/.github/actions/contract-tests/action.yml index a7ab0fb..4eaa062 100644 --- a/.github/actions/contract-tests/action.yml +++ b/.github/actions/contract-tests/action.yml @@ -4,6 +4,9 @@ inputs: tls_feature: description: 'Which TLS feature do you want to enable?' required: true + token: + description: 'GH Token used for retrieving SDK test harness.' + required: true runs: using: composite @@ -16,6 +19,8 @@ runs: shell: bash run: make start-contract-test-service-bg - - name: Run contract tests - shell: bash - run: make run-contract-tests + - uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.0 + with: + test_service_port: 8000 + token: ${{ inputs.token }} + extra_params: "-skip-from ./contract-tests/testharness-suppressions.txt" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7965331..8742aa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,13 @@ jobs: uses: ./.github/actions/contract-tests with: tls_feature: 'rustls' + token: ${{ secrets.GITHUB_TOKEN }} - name: 'Run contract tests with hyper_tls' uses: ./.github/actions/contract-tests with: tls_feature: 'tls' + token: ${{ secrets.GITHUB_TOKEN }} - uses: ./.github/actions/build-docs