Skip to content

Conversation

@ssestak
Copy link
Contributor

@ssestak ssestak commented Jan 26, 2026

Implement GitHub Actions workflows to automate code quality checks and testing. This includes linting Swift code, validating workflow files, and running unit tests on macOS.

Key Features:

  • SwiftLint workflow: Automatically lints Swift source files, Package.swift, Package.resolved, and .swiftlint.yml on pull requests.
  • Actionlint workflow: Automatically lints GitHub Actions workflow files and the actionlint-matcher.json on pull requests.
  • Test workflow: Builds and runs Swift tests on macOS for pushes to the main branch and all pull requests.
  • Actionlint Problem Matcher: Integrates actionlint output with GitHub's problem reporting for better visibility.
Workflow Name Trigger Purpose
lint-swift.yml pull_request Lint Swift code with SwiftLint
lint-workflows.yml pull_request Lint GitHub Actions workflows with actionlint
test.yml push (main), pull_request Build and run Swift tests on macOS

Šimon Šesták and others added 2 commits January 26, 2026 11:23
Added 3 workflow files following FTNetworkTracer's modern pattern:

- test.yml: Runs swift build and swift test on macOS for every push to main and all PRs
  - Path-filtered to run only when Swift files or package configuration changes
  - Uses actions/checkout@v4 (latest stable)
  - Verbose output for debugging

- lint-swift.yml: Runs SwiftLint in strict mode on all PRs
  - Enforces code quality standards
  - Zero tolerance for warnings
  - Path-filtered for efficiency

- lint-workflows.yml: Validates workflow files using actionlint
  - Catches workflow syntax errors and best practice violations
  - Includes problem matcher for IDE integration

All workflows use path-based filtering for efficiency and follow Futured's established patterns from FTNetworkTracer and FTAPIKit repositories.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Sort imports alphabetically in test files
- Fix trailing comma, whitespace, and brace spacing issues
- Add swiftlint disable comments for intentional patterns (nesting, force unwrapping, identifier names)
- Fix modifier order (private static → static private)
- Add default value for networkObservers parameter in array init

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ssestak ssestak merged commit f594464 into main Jan 26, 2026
3 checks passed
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.

3 participants