Repository navigation
feat: Expose FDv2 through the client SDK configuration #2375
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: libs/server-sent-events | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**.md' #Do not need to run CI for markdown changes. | |
| pull_request: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| build-test-sse: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: launchdarkly-sse-client | |
| build-test-sse-curl: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: launchdarkly-sse-client | |
| use_curl: true | |
| contract-tests: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| # Port the test service (implemented in this repo) should bind to. | |
| TEST_SERVICE_PORT: 8123 | |
| TEST_SERVICE_BINARY: ./build/contract-tests/sse-contract-tests/sse-tests | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: sse-tests | |
| run_tests: false | |
| - name: 'Launch test service as background task' | |
| run: $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 & | |
| - uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1 | |
| with: | |
| repo: 'sse-contract-tests' | |
| branch: 'main' | |
| test_service_port: ${{ env.TEST_SERVICE_PORT }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # The SSE test harness doesn't support persistence tests. | |
| enable_persistence_tests: false | |
| contract-tests-curl: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| # Port the test service (implemented in this repo) should bind to. | |
| TEST_SERVICE_PORT: 8123 | |
| TEST_SERVICE_BINARY: ./build/contract-tests/sse-contract-tests/sse-tests | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: sse-tests | |
| run_tests: false | |
| use_curl: true | |
| - name: 'Launch test service as background task' | |
| run: $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 & | |
| - uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1 | |
| with: | |
| repo: 'sse-contract-tests' | |
| branch: 'main' | |
| test_service_port: ${{ env.TEST_SERVICE_PORT }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # The SSE test harness doesn't support persistence tests. | |
| enable_persistence_tests: false |