Skip to content

Add github workflows - #12

Merged
ssestak merged 2 commits into
mainfrom
feature/Add-github-workflows
Jan 26, 2026
Merged

Add github workflows#12
ssestak merged 2 commits into
mainfrom
feature/Add-github-workflows

Conversation

@ssestak

Copy link
Copy Markdown
Contributor

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 NameTriggerPurpose
lint-swift.ymlpull_requestLint Swift code with SwiftLint
lint-workflows.ymlpull_requestLint GitHub Actions workflows with actionlint
test.ymlpush (main), pull_requestBuild and run Swift tests on macOS

Šimon Šestákand 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 mainJan 26, 2026
3 checks passed
@jmarek41
jmarek41 deleted the feature/Add-github-workflows branch February 27, 2026 07:12
Sign up for freeto 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

@ssestak@jmarek41