Skip to content

Commit

Permalink
ci: Fix rate limiting error when downloading contract tests (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored May 3, 2024
1 parent caead08 commit d3f7726
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
ruby-version:
description: 'The version of ruby to setup and run'
required: true
token:
description: 'GH token used to fetch the SDK test harness'
required: true

runs:
using: composite
Expand All @@ -30,7 +33,18 @@ runs:
shell: bash
run: bundle exec rubocop --parallel

- name: Run contract tests
- name: Build contract tests
if: ${{ !startsWith(inputs.ruby-version, 'jruby') }}
shell: bash
run: make build-contract-tests

- name: Start contract test service
if: ${{ !startsWith(inputs.ruby-version, 'jruby') }}
shell: bash
run: make contract-tests
run: make start-contract-test-service-bg

- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.1
if: ${{ !startsWith(inputs.ruby-version, 'jruby') }}
with:
test_service_port: 9000
token: ${{ inputs.token }}
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
LD_SKIP_DATABASE_TESTS: 0

strategy:
fail-fast: false
matrix:
ruby-version:
- '3.0'
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
- uses: ./.github/actions/ci
with:
ruby-version: ${{ matrix.ruby-version }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/build-docs
if: ${{ !startsWith(matrix.ruby-version, 'jruby') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
uses: ./.github/actions/ci
with:
ruby-version: 3.0
token: ${{ secrets.GITHUB_TOKEN }}

- id: publish
name: Publish Package
Expand All @@ -47,4 +48,3 @@ jobs:
with:
base64-subjects: "${{ needs.build-publish.outputs.gem-hash }}"
upload-assets: ${{ !inputs.dry_run }}

1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
if: ${{ steps.release.outputs.releases_created }}
with:
ruby-version: 3.0
token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/build-docs
if: ${{ steps.release.outputs.releases_created }}
Expand Down

0 comments on commit d3f7726

Please sign in to comment.