Skip to content

feat: add ci for testing Core and check the build-ability#128

Merged
ensan-hcl merged 8 commits intomainfrom
ci
May 3, 2025
Merged

feat: add ci for testing Core and check the build-ability#128
ensan-hcl merged 8 commits intomainfrom
ci

Conversation

@ensan-hcl
Copy link
Copy Markdown
Member

@ensan-hcl ensan-hcl commented May 3, 2025

This pull request introduces a GitHub Actions workflow for Swift development, updates build settings in the Xcode project, and improves string decoding in the codebase. These changes enhance CI/CD processes, streamline project configuration, and improve error handling.

CI/CD Enhancements:

Added a new GitHub Actions workflow (.github/workflows/swift.yml) that includes jobs for building and testing on macOS, running xcodebuild tests, and enforcing SwiftLint for code quality.

Xcode Project Configuration:

  • Removed the SYMROOT setting from both the Debug and Release build configurations in azooKeyMac.xcodeproj/project.pbxproj, allowing Xcode to use its default build directory. [1] [2]

Code Improvements:

  • Updated string decoding in KeychainHelper to use String(bytes:encoding:) for better handling of UTF-8 encoded data.
  • Improved error handling in OpenAIClient by using String(bytes:encoding:) with a fallback message for non-UTF-8 encoded response bodies.

@ensan-hcl ensan-hcl requested a review from Copilot May 3, 2025 08:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces continuous integration for the Core component by adding Swift build and test workflows while also refining string decoding in error handling paths. Key changes include:

  • Updating string decoding in OpenAIClient.swift to handle non-UTF8 responses with a fallback message.
  • Adjusting string decoding in KeychainHelper.swift to return an optional value.
  • Adding a CI workflow (swift.yml) to build, test, and lint the project on macOS.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
azooKeyMac/InputController/OpenAIClient.swift Refined error handling by switching to a safer UTF8 decoding with a fallback message.
azooKeyMac/Extensions/KeychainHelper.swift Updated keychain decoding logic to use the optional-returning initializer.
.github/workflows/swift.yml Added CI workflow for building, testing, and linting the project.
Files not reviewed (1)
  • azooKeyMac.xcodeproj/project.pbxproj: Language not supported

Comment thread azooKeyMac/InputController/OpenAIClient.swift
Comment thread azooKeyMac/Extensions/KeychainHelper.swift
@ensan-hcl ensan-hcl merged commit a2ae43f into main May 3, 2025
6 checks passed
@ensan-hcl ensan-hcl deleted the ci branch May 3, 2025 08:09
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