Skip to content

Commit be530d0

Browse files
authored
chore: Migrate dotnet-sdk-common into dotnet-core (#105)
1 parent aea1514 commit be530d0

76 files changed

Lines changed: 10092 additions & 6 deletions

File tree

Some content is hidden

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

.github/actions/full-release/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build, Test, and Publish
22
description: 'Execute the full release process for a workspace.'
33
inputs:
4+
assembly_key_path_pair:
5+
description: 'The assembly key path pair file string.'
6+
required: true
47
workspace_path:
58
description: 'Path to the workspace being released.'
69
required: true
@@ -64,7 +67,7 @@ runs:
6467
/production/common/releasing/digicert/client_cert_password = DIGICERT_CLIENT_CERT_PASSWORD,
6568
/production/common/releasing/digicert/code_signing_cert_sha1_hash = DIGICERT_CODE_SIGNING_CERT_SHA1_HASH,
6669
/production/common/releasing/nuget/api_key = NUGET_API_KEY'
67-
s3_path_pairs: 'launchdarkly-releaser/dotnet/LaunchDarkly.snk = LaunchDarkly.snk'
70+
s3_path_pairs: ${{ inputs.assembly_key_path_pair }}
6871

6972
- name: Release build
7073
uses: ./.github/actions/build-release

.github/workflows/release-please.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
package-sdk-server-tag_name: ${{ steps.release.outputs['pkgs/sdk/server--tag_name'] }}
2525
package-sdk-server-telemetry-released: ${{ steps.release.outputs['pkgs/telemetry--release_created'] }}
2626
package-sdk-server-telemetry-tag_name: ${{ steps.release.outputs['pkgs/telemetry--tag_name'] }}
27+
package-shared-common-released: ${{ steps.release.outputs['pkgs/shared/common--release_created'] }}
28+
package-shared-common-tag_name: ${{ steps.release.outputs['pkgs/shared/common--tag_name'] }}
29+
package-shared-common-json-net-released: ${{ steps.release.outputs['pkgs/shared/common-json-net--release_created'] }}
30+
package-shared-common-json-net-tag_name: ${{ steps.release.outputs['pkgs/shared/common-json-net--tag_name'] }}
2731
tag_name: ${{ steps.release.outputs.tag_name }}
2832

2933
steps:
@@ -115,3 +119,23 @@ jobs:
115119
dry_run: false
116120
generate_provenance: true
117121
tag_name: ${{ needs.release-please.outputs.package-sdk-server-dynamodb-tag_name }}
122+
123+
release-shared-common:
124+
needs: release-please
125+
if: ${{ needs.release-please.outputs.package-shared-common-released == 'true'}}
126+
uses: ./.github/workflows/release.yml
127+
with:
128+
package_path: pkgs/shared/common
129+
dry_run: false
130+
generate_provenance: true
131+
tag_name: ${{ needs.release-please.outputs.package-shared-common-tag_name }}
132+
133+
release-shared-common-json-net:
134+
needs: release-please
135+
if: ${{ needs.release-please.outputs.package-shared-common-json-net-released == 'true'}}
136+
uses: ./.github/workflows/release.yml
137+
with:
138+
package_path: pkgs/shared/common-json-net
139+
dry_run: false
140+
generate_provenance: true
141+
tag_name: ${{ needs.release-please.outputs.package-shared-common-json-net-tag_name }}

.github/workflows/release-sdk-client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
with:
152152
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
153153
ssm_parameter_pairs: '/production/common/releasing/nuget/api_key = NUGET_API_KEY'
154-
s3_path_pairs: 'launchdarkly-releaser/dotnet/LaunchDarkly.ClientSdk.snk = LaunchDarkly.ClientSdk.snk'
154+
s3_path_pairs: ${{ env.ASSEMBLY_KEY_PATH_PAIR }}
155155

156156
- name: Publish Nupkg
157157
id: publish

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
- pkgs/sdk/server
1515
- pkgs/sdk/server-ai
1616
- pkgs/telemetry
17+
- pkgs/shared/common
18+
- pkgs/shared/common-json-net
1719
dry_run:
1820
description: 'Is this a dry run. If so no package will be published.'
1921
type: boolean
@@ -61,6 +63,7 @@ jobs:
6163
- uses: ./.github/actions/full-release
6264
id: full-release
6365
with:
66+
assembly_key_path_pair: ${{ env.ASSEMBLY_KEY_PATH_PAIR }}
6467
workspace_path: ${{ env.WORKSPACE_PATH }}
6568
project_file: ${{ env.PROJECT_FILE }}
6669
build_output_path: ${{ env.BUILD_OUTPUT_PATH }}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: LaunchDarkly.CommonSdk.JsonNet CI
2+
3+
on:
4+
push:
5+
branches: [ main, 'feat/**' ]
6+
paths:
7+
- '.github/**'
8+
- 'global.example.json'
9+
- 'pkgs/shared/common-json-net/**'
10+
- '!**.md'
11+
pull_request:
12+
branches: [ main, 'feat/**' ]
13+
paths:
14+
- '.github/**'
15+
- 'global.example.json'
16+
- 'pkgs/shared/common-json-net/**'
17+
- '!**.md'
18+
19+
jobs:
20+
build-and-test:
21+
strategy:
22+
matrix:
23+
include:
24+
- os: ubuntu-latest
25+
framework: netstandard2.0
26+
test_framework: net8.0
27+
- os: windows-latest
28+
framework: net462
29+
test_framework: net462
30+
31+
runs-on: ${{ matrix.os }}
32+
33+
defaults:
34+
run:
35+
shell: ${{ matrix.os == 'windows-latest' && 'powershell' || 'bash' }}
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Setup Env from project's Env file
41+
shell: bash
42+
run: echo "$(cat pkgs/shared/common-json-net/github_actions.env)" >> $GITHUB_ENV
43+
44+
- uses: ./.github/actions/ci
45+
with:
46+
project_file: ${{ env.PROJECT_FILE }}
47+
test_project_file: ${{ env.TEST_PROJECT_FILE }}
48+
target_test_framework: ${{ matrix.test_framework }}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: LaunchDarkly.CommonSdk CI
2+
3+
on:
4+
push:
5+
branches: [ main, 'feat/**' ]
6+
paths:
7+
- '.github/**'
8+
- 'global.example.json'
9+
- 'pkgs/shared/common/**'
10+
- '!**.md'
11+
pull_request:
12+
branches: [ main, 'feat/**' ]
13+
paths:
14+
- '.github/**'
15+
- 'global.example.json'
16+
- 'pkgs/shared/common/**'
17+
- '!**.md'
18+
19+
jobs:
20+
build-and-test:
21+
strategy:
22+
matrix:
23+
include:
24+
- os: ubuntu-latest
25+
framework: netstandard2.0
26+
test_framework: net8.0
27+
- os: windows-latest
28+
framework: net462
29+
test_framework: net462
30+
31+
runs-on: ${{ matrix.os }}
32+
33+
defaults:
34+
run:
35+
shell: ${{ matrix.os == 'windows-latest' && 'powershell' || 'bash' }}
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Setup Env from project's Env file
41+
shell: bash
42+
run: echo "$(cat pkgs/shared/common/github_actions.env)" >> $GITHUB_ENV
43+
44+
- uses: ./.github/actions/ci
45+
with:
46+
project_file: ${{ env.PROJECT_FILE }}
47+
test_project_file: ${{ env.TEST_PROJECT_FILE }}
48+
target_test_framework: ${{ matrix.test_framework }}

.release-please-manifest.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
"pkgs/sdk/server": "8.8.0",
66
"pkgs/sdk/client": "5.4.0",
77
"pkgs/telemetry": "1.1.0",
8-
"pkgs/sdk/server-ai": "0.7.0"
8+
"pkgs/sdk/server-ai": "0.7.0",
9+
"pkgs/shared/common": "7.0.0",
10+
"pkgs/shared/common-json-net": "7.0.0"
911
}

pkgs/dotnet-server-sdk-consul/github_actions.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ WORKSPACE_PATH=pkgs/dotnet-server-sdk-consul
22
PROJECT_FILE=pkgs/dotnet-server-sdk-consul/src/LaunchDarkly.ServerSdk.Consul.csproj
33
BUILD_OUTPUT_PATH=pkgs/dotnet-server-sdk-consul/src/bin/Release/
44
BUILD_OUTPUT_DLL_NAME=LaunchDarkly.ServerSdk.Consul.dll
5-
TEST_PROJECT_FILE=pkgs/dotnet-server-sdk-consul/test/LaunchDarkly.ServerSdk.Consul.Tests.csproj
5+
TEST_PROJECT_FILE=pkgs/dotnet-server-sdk-consul/test/LaunchDarkly.ServerSdk.Consul.Tests.csproj
6+
ASSEMBLY_KEY_PATH_PAIR='launchdarkly-releaser/dotnet/LaunchDarkly.Consul.snk = LaunchDarkly.Consul.snk'

pkgs/dotnet-server-sdk-dynamodb/github_actions.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ WORKSPACE_PATH=pkgs/dotnet-server-sdk-dynamodb
22
PROJECT_FILE=pkgs/dotnet-server-sdk-dynamodb/src/LaunchDarkly.ServerSdk.DynamoDB.csproj
33
BUILD_OUTPUT_PATH=pkgs/dotnet-server-sdk-dynamodb/src/bin/Release/
44
BUILD_OUTPUT_DLL_NAME=LaunchDarkly.ServerSdk.DynamoDB.dll
5-
TEST_PROJECT_FILE=pkgs/dotnet-server-sdk-dynamodb/test/LaunchDarkly.ServerSdk.DynamoDB.Tests.csproj
5+
TEST_PROJECT_FILE=pkgs/dotnet-server-sdk-dynamodb/test/LaunchDarkly.ServerSdk.DynamoDB.Tests.csproj
6+
ASSEMBLY_KEY_PATH_PAIR='launchdarkly-releaser/dotnet/LaunchDarkly.DynamoDB.snk = LaunchDarkly.DynamoDB.snk'

pkgs/dotnet-server-sdk-redis/github_actions.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ WORKSPACE_PATH=pkgs/dotnet-server-sdk-redis
22
PROJECT_FILE=pkgs/dotnet-server-sdk-redis/src/LaunchDarkly.ServerSdk.Redis.csproj
33
BUILD_OUTPUT_PATH=pkgs/dotnet-server-sdk-redis/src/bin/Release/
44
BUILD_OUTPUT_DLL_NAME=LaunchDarkly.ServerSdk.Redis.dll
5-
TEST_PROJECT_FILE=pkgs/dotnet-server-sdk-redis/test/LaunchDarkly.ServerSdk.Redis.Tests.csproj
5+
TEST_PROJECT_FILE=pkgs/dotnet-server-sdk-redis/test/LaunchDarkly.ServerSdk.Redis.Tests.csproj
6+
ASSEMBLY_KEY_PATH_PAIR='launchdarkly-releaser/dotnet/LaunchDarkly.Redis.snk = LaunchDarkly.Redis.snk'

0 commit comments

Comments
 (0)