-
Notifications
You must be signed in to change notification settings - Fork 10
86 lines (73 loc) · 2.4 KB
/
java-server-sdk.yml
File metadata and controls
86 lines (73 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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