Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleaning up github actions paths, fixing publish docs params #8

Merged
merged 17 commits into from
Jun 13, 2024

Conversation

tanderson-ld
Copy link
Contributor

Cleaning up various paths in different actions to avoid duplication of strings.

@tanderson-ld tanderson-ld requested a review from a team June 12, 2024 21:16
@@ -23,68 +24,41 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: Using macos-latest since mac is the lowest common denominator for platforms that supports all the client SDK target frameworks.

permissions:
id-token: write
contents: write
outputs:
server-sdk-hashes: ${{ steps.server-sdk-release.outputs.hashes }}
telemetry-hashes: ${{ steps.telemetry-release.outputs.hashes }}
full-release-hashes: ${{ steps.full-release.outputs.hashes }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: Commonizing

project_file: ${{ env.PROJECT_FILE }}
build_output_path: ${{ env.BUILD_OUTPUT_PATH }}
test_project_file: ${{ env.TEST_PROJECT_FILE }}
dll_name: ${{ env.BUILD_OUTPUT_DLL_NAME }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: the setup env action helps compartmentalize all the path strings



release-telemetry-server-provenance:
release-provenance:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commonizing

options:
- LaunchDarkly.ClientSdk
- LaunchDarkly.ServerSdk
- LaunchDarkly.ServerSdk.Telemetry
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: This gives a dropdown when triggering the action, a better user experience with less chance for errors.

aws_role: ${{ vars.AWS_ROLE_ARN }}
token: ${{ secrets.GITHUB_TOKEN }}

release-sdk-server-provenance:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: Moved provenance tasks to the bottom for organization. Made the diff weird.

aws_role: ${{ vars.AWS_ROLE_ARN }}
token: ${{ secrets.GITHUB_TOKEN }}

# TODO: refactor provenance
release-sdk-server-provenance:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: Moved provenance tasks to the bottom for organization. Made the diff weird.

@@ -13,8 +13,7 @@ jobs:
build-and-test:
strategy:
matrix:
# TODO: Figure out mechanism to skip iOS framework on ubuntu and windows and re-add ubuntu and windows
os: [macos-latest]
os: macos-latest
Copy link
Contributor Author

@tanderson-ld tanderson-ld Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: I spent some time trying to figure out this TODO, eventually realizing TODO is not necessary since macos dotnet build can build the other platforms.

workspace_path: pkgs/sdk/client
workspace_path: ${{ env.WORKSPACE_PATH}}

# TODO: resolve issue with emulator and device tests
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: This is an existing TODO in the client-sdk repo that I am migrating here so we don't forget about it.

.github/workflows/telemetry-ci.yml Outdated Show resolved Hide resolved
@tanderson-ld tanderson-ld merged commit 9bc350e into main Jun 13, 2024
8 checks passed
@tanderson-ld tanderson-ld deleted the ta/sc-244785/cleaning-up-action-paths branch June 13, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants