Skip to content

Commit 34213b8

Browse files
committed
Finalize multi-runtime ManagedCode.Tps SDK
1 parent c8da4e0 commit 34213b8

File tree

116 files changed

+22723
-355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+22723
-355
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,32 @@ jobs:
2828
runtimes:
2929
name: Runtime ${{ matrix.runtime.language }}
3030
needs: runtime-matrix
31-
runs-on: ubuntu-latest
31+
runs-on: ${{ matrix.runtime.runner }}
3232
strategy:
3333
fail-fast: false
3434
matrix:
3535
runtime: ${{ fromJson(needs.runtime-matrix.outputs.matrix) }}
3636
steps:
3737
- uses: actions/checkout@v6
38-
- uses: actions/setup-node@v6
38+
- if: matrix.runtime.setup == 'node' || matrix.runtime.setup == 'dotnet'
39+
uses: actions/setup-node@v6
3940
with:
4041
node-version: 22
41-
- uses: actions/setup-dotnet@v5
42+
- if: matrix.runtime.setup == 'dotnet'
43+
uses: actions/setup-dotnet@v5
4244
with:
4345
dotnet-version: 10.0.x
44-
- run: npm ci --prefix SDK/js
45-
- run: dotnet restore SDK/dotnet/ManagedCode.Tps.slnx
46+
- if: matrix.runtime.setup == 'dart'
47+
uses: dart-lang/setup-dart@v1
48+
- if: matrix.runtime.setup == 'java'
49+
uses: actions/setup-java@v4
50+
with:
51+
distribution: temurin
52+
java-version: '17'
53+
- if: matrix.runtime.setup == 'node'
54+
run: npm ci --prefix SDK/js
55+
- if: matrix.runtime.setup == 'dotnet'
56+
run: dotnet restore SDK/dotnet/ManagedCode.Tps.slnx
4657
- run: ${{ matrix.runtime.build }}
4758
- run: ${{ matrix.runtime.test }}
4859

.github/workflows/coverage.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,43 @@ jobs:
2828
coverage:
2929
name: Coverage ${{ matrix.runtime.language }}
3030
needs: coverage-matrix
31-
runs-on: ubuntu-latest
31+
runs-on: ${{ matrix.runtime.runner }}
3232
strategy:
3333
fail-fast: false
3434
matrix:
3535
runtime: ${{ fromJson(needs.coverage-matrix.outputs.matrix) }}
3636
steps:
3737
- uses: actions/checkout@v6
38-
- uses: actions/setup-node@v6
38+
- if: matrix.runtime.setup == 'node' || matrix.runtime.setup == 'dotnet'
39+
uses: actions/setup-node@v6
3940
with:
4041
node-version: 22
41-
- uses: actions/setup-dotnet@v5
42+
- if: matrix.runtime.setup == 'dotnet'
43+
uses: actions/setup-dotnet@v5
4244
with:
4345
dotnet-version: 10.0.x
44-
- run: npm ci --prefix SDK/js
45-
- run: dotnet restore SDK/dotnet/ManagedCode.Tps.slnx
46+
- if: matrix.runtime.setup == 'dart'
47+
uses: dart-lang/setup-dart@v1
48+
- if: matrix.runtime.setup == 'java'
49+
uses: actions/setup-java@v4
50+
with:
51+
distribution: temurin
52+
java-version: '17'
53+
- if: matrix.runtime.setup == 'node'
54+
run: npm ci --prefix SDK/js
55+
- if: matrix.runtime.setup == 'dotnet'
56+
run: dotnet restore SDK/dotnet/ManagedCode.Tps.slnx
4657
- run: ${{ matrix.runtime.build }}
4758
- run: ${{ matrix.runtime.coverage }}
4859
- name: Coverage Policy
4960
run: |
5061
{
5162
echo "## Coverage Policy"
5263
echo ""
64+
echo "- TypeScript: minimum 90% statements, branches, functions, and lines"
5365
echo "- JavaScript: minimum 90% statements, branches, functions, and lines"
5466
echo "- C#: minimum 90% line, branch, and method coverage"
67+
echo "- Flutter: minimum 90% line coverage for SDK source files"
68+
echo "- Swift: minimum 90% line coverage for SDK source files"
69+
echo "- Java: minimum 90% line coverage for SDK source files"
5570
} >> "$GITHUB_STEP_SUMMARY"

.github/workflows/sdk-dotnet-coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: SDK CSharp Coverage
22

3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
36
on:
47
push:
58
branches:
@@ -9,12 +12,14 @@ on:
912
paths:
1013
- "SDK/dotnet/**"
1114
- "SDK/fixtures/**"
15+
- "examples/**"
1216
- ".github/workflows/sdk-dotnet.yml"
1317
- ".github/workflows/sdk-dotnet-coverage.yml"
1418
pull_request:
1519
paths:
1620
- "SDK/dotnet/**"
1721
- "SDK/fixtures/**"
22+
- "examples/**"
1823
- ".github/workflows/sdk-dotnet.yml"
1924
- ".github/workflows/sdk-dotnet-coverage.yml"
2025
workflow_dispatch:

.github/workflows/sdk-dotnet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: SDK CSharp
22

3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
36
on:
47
push:
58
branches:
@@ -9,12 +12,14 @@ on:
912
paths:
1013
- "SDK/dotnet/**"
1114
- "SDK/fixtures/**"
15+
- "examples/**"
1216
- ".github/workflows/sdk-dotnet.yml"
1317
- ".github/workflows/sdk-dotnet-coverage.yml"
1418
pull_request:
1519
paths:
1620
- "SDK/dotnet/**"
1721
- "SDK/fixtures/**"
22+
- "examples/**"
1823
- ".github/workflows/sdk-dotnet.yml"
1924
- ".github/workflows/sdk-dotnet-coverage.yml"
2025
workflow_dispatch:
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: SDK Flutter Coverage
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
- "codex/**"
12+
paths:
13+
- "SDK/flutter/**"
14+
- "SDK/fixtures/**"
15+
- "examples/**"
16+
- ".github/workflows/sdk-flutter.yml"
17+
- ".github/workflows/sdk-flutter-coverage.yml"
18+
pull_request:
19+
paths:
20+
- "SDK/flutter/**"
21+
- "SDK/fixtures/**"
22+
- "examples/**"
23+
- ".github/workflows/sdk-flutter.yml"
24+
- ".github/workflows/sdk-flutter-coverage.yml"
25+
workflow_dispatch:
26+
27+
jobs:
28+
coverage:
29+
name: Coverage 90%+
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
- uses: dart-lang/setup-dart@v1
34+
- run: cd SDK/flutter && ./coverage.sh

.github/workflows/sdk-flutter.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: SDK Flutter
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
- "codex/**"
12+
paths:
13+
- "SDK/flutter/**"
14+
- "SDK/fixtures/**"
15+
- "examples/**"
16+
- ".github/workflows/sdk-flutter.yml"
17+
pull_request:
18+
paths:
19+
- "SDK/flutter/**"
20+
- "SDK/fixtures/**"
21+
- "examples/**"
22+
- ".github/workflows/sdk-flutter.yml"
23+
workflow_dispatch:
24+
25+
jobs:
26+
build-and-test:
27+
name: Build And Test
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v6
31+
- uses: dart-lang/setup-dart@v1
32+
- run: cd SDK/flutter && dart pub get
33+
- run: cd SDK/flutter && dart analyze
34+
- run: cd SDK/flutter && dart test
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: SDK Java Coverage
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
- "codex/**"
12+
paths:
13+
- "SDK/java/**"
14+
- "SDK/fixtures/**"
15+
- "examples/**"
16+
- ".github/workflows/sdk-java.yml"
17+
- ".github/workflows/sdk-java-coverage.yml"
18+
pull_request:
19+
paths:
20+
- "SDK/java/**"
21+
- "SDK/fixtures/**"
22+
- "examples/**"
23+
- ".github/workflows/sdk-java.yml"
24+
- ".github/workflows/sdk-java-coverage.yml"
25+
workflow_dispatch:
26+
27+
jobs:
28+
coverage:
29+
name: Coverage 90%+
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
- uses: actions/setup-java@v4
34+
with:
35+
distribution: temurin
36+
java-version: '17'
37+
- run: cd SDK/java && ./coverage.sh

.github/workflows/sdk-java.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: SDK Java
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
- "codex/**"
12+
paths:
13+
- "SDK/java/**"
14+
- "SDK/fixtures/**"
15+
- "examples/**"
16+
- ".github/workflows/sdk-java.yml"
17+
pull_request:
18+
paths:
19+
- "SDK/java/**"
20+
- "SDK/fixtures/**"
21+
- "examples/**"
22+
- ".github/workflows/sdk-java.yml"
23+
workflow_dispatch:
24+
25+
jobs:
26+
build-and-test:
27+
name: Build And Test
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v6
31+
- uses: actions/setup-java@v4
32+
with:
33+
distribution: temurin
34+
java-version: '17'
35+
- run: cd SDK/java && ./build.sh
36+
- run: cd SDK/java && ./test.sh

.github/workflows/sdk-javascript-coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ on:
1313
- "SDK/ts/**"
1414
- "SDK/js/**"
1515
- "SDK/fixtures/**"
16+
- "examples/**"
1617
- ".github/workflows/sdk-javascript.yml"
1718
- ".github/workflows/sdk-javascript-coverage.yml"
1819
pull_request:
1920
paths:
2021
- "SDK/ts/**"
2122
- "SDK/js/**"
2223
- "SDK/fixtures/**"
24+
- "examples/**"
2325
- ".github/workflows/sdk-javascript.yml"
2426
- ".github/workflows/sdk-javascript-coverage.yml"
2527
workflow_dispatch:

.github/workflows/sdk-javascript.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ on:
1313
- "SDK/ts/**"
1414
- "SDK/js/**"
1515
- "SDK/fixtures/**"
16+
- "examples/**"
1617
- ".github/workflows/sdk-javascript.yml"
1718
- ".github/workflows/sdk-javascript-coverage.yml"
1819
pull_request:
1920
paths:
2021
- "SDK/ts/**"
2122
- "SDK/js/**"
2223
- "SDK/fixtures/**"
24+
- "examples/**"
2325
- ".github/workflows/sdk-javascript.yml"
2426
- ".github/workflows/sdk-javascript-coverage.yml"
2527
workflow_dispatch:

0 commit comments

Comments
 (0)