Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/actions/contract-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Contract Tests
description: 'Build and run SDK contract tests.'
inputs:
token:
description: 'GH token used to download SDK test harness.'
required: true

runs:
using: composite
steps:
- name: Build contract test service
shell: bash
run: make build-contract-tests

- name: Start contract test service
shell: bash
run: make start-contract-test-service-bg

- name: Run contract tests
uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1
with:
repo: sse-contract-tests
branch: main
version: v2
token: ${{ inputs.token }}
test_service_port: '8000'
debug_logging: 'true'
enable_persistence_tests: 'false'
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:

# After junit/coverage artifacts: contract test failures must not skip uploads above.
- name: Contract tests
run: make contract-tests
uses: ./.github/actions/contract-tests
with:
token: ${{ secrets.GITHUB_TOKEN }}

windows:
runs-on: windows-latest
Expand Down
Loading