Repository navigation
feat: Add the FDv2 data source orchestrator to the client SDK #1974
Workflow file for this run
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-sdk-redis-source | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**.md' # Do not need to run CI for markdown changes. | |
| pull_request: | |
| branches: [ "main", "feat/**" ] | |
| paths-ignore: | |
| - '**.md' | |
| schedule: | |
| # Run daily at midnight PST | |
| - cron: '0 8 * * *' | |
| jobs: | |
| contract-tests: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - harness: v2 | |
| suppressions: contract-tests/server-contract-tests/persistence-suppressions.txt | |
| - harness: v3 | |
| suppressions: contract-tests/server-contract-tests/persistence-suppressions-fdv2.txt | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| env: | |
| TEST_SERVICE_PORT: 8123 | |
| TEST_SERVICE_BINARY: ./build/contract-tests/server-contract-tests/server-tests | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: server-tests | |
| run_tests: false | |
| use_redis: 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: | |
| test_service_port: ${{ env.TEST_SERVICE_PORT }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| enable_persistence_tests: true | |
| version: ${{ matrix.harness }} | |
| branch: ${{ matrix.harness }} | |
| # The other suites are covered by libs/server-sdk's workflow. | |
| extra_params: -run=persistent.data.store -skip-from=${{ matrix.suppressions }} | |
| build-test-redis: | |
| runs-on: ubuntu-22.04 | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: launchdarkly-cpp-server-redis-source | |
| simulate_release: true | |
| use_redis: true | |
| build-redis-mac: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ./.github/actions/ci | |
| with: | |
| cmake_target: launchdarkly-cpp-server-redis-source | |
| platform_version: 12 | |
| run_tests: false # TODO: figure out how to run Redis service on Mac | |
| simulate_release: true | |
| use_redis: true | |
| build-test-redis-windows: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 | |
| - uses: ./.github/actions/ci | |
| env: | |
| BOOST_LIBRARY_DIR: 'C:\local\boost_1_87_0\lib64-msvc-14.3' | |
| BOOST_LIBRARYDIR: 'C:\local\boost_1_87_0\lib64-msvc-14.3' | |
| Boost_DIR: 'C:\local\boost_1_87_0\lib64-msvc-14.3\cmake\Boost-1.87.0' | |
| with: | |
| cmake_target: launchdarkly-cpp-server-redis-source | |
| platform_version: 2022 | |
| toolset: msvc | |
| run_tests: false # TODO: figure out how to run Redis service on Windows | |
| simulate_windows_release: true | |
| use_redis: true |