feat: add Runner, RunnerResult, Judge, and Evaluator #537
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: java-server-sdk | |
| on: | |
| push: | |
| branches: [main, 'feat/**'] | |
| paths-ignore: | |
| - '**.md' #Do not need to run CI for markdown changes. | |
| pull_request: | |
| branches: [main, 'feat/**'] | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| test-platforms-and-versions: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| javaversion: [8, 11, 17, 19] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Shared CI Steps | |
| uses: ./.github/actions/ci | |
| with: | |
| workspace_path: 'lib/sdk/server' | |
| java_version: ${{ matrix.javaversion }} | |
| test-contract-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Shared CI Steps | |
| uses: ./.github/actions/ci | |
| with: | |
| workspace_path: 'lib/sdk/server' | |
| java_version: 8 | |
| - name: Build Contract Test Service | |
| shell: bash | |
| run: make build-contract-tests -C lib/sdk/server | |
| - name: Start Contract Test Service | |
| shell: bash | |
| run: make start-contract-test-service-bg -C lib/sdk/server | |
| - name: Contract Tests (v2) | |
| uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1 | |
| with: | |
| test_service_port: '8000' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| debug_logging: 'true' | |
| stop_service: 'false' | |
| enable_persistence_tests: 'false' | |
| extra_params: '-skip-from=lib/sdk/server/contract-tests/test-suppressions.txt' | |
| - name: Contract Tests (v3) | |
| uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1 | |
| with: | |
| test_service_port: '8000' | |
| version: 'v3.0.0-alpha.6' | |
| branch: 'v3.0.0-alpha.6' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| debug_logging: 'true' | |
| enable_persistence_tests: 'false' | |
| extra_params: '-skip-from=lib/sdk/server/contract-tests/test-suppressions-fdv2.txt' | |
| test-packaging: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Shared CI Steps | |
| uses: ./.github/actions/ci | |
| with: | |
| workspace_path: 'lib/sdk/server' | |
| java_version: 8 | |
| - name: Publish Maven Local | |
| shell: bash | |
| run: lib/sdk/server/gradlew publishToMavenLocal -p lib/sdk/server -P skipSigning=true | |
| - name: Run Packaging Test | |
| shell: bash | |
| run: make all -C lib/sdk/server/packaging-test |