Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint-and-build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4

- name: Install Swift 6.2
uses: swift-actions/setup-swift@v2
with:
swift-version: '6.2'

- name: Swift Format
run: swift format lint --strict --recursive Sources/

- name: SwiftLint
run: brew install swiftlint && swiftlint lint --strict

- name: Build
run: swift build
11 changes: 11 additions & 0 deletions .swift-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": 1,
"indentation": {
"spaces": 2
},
"lineLength": 120,
"indentConditionalCompilationBlocks": true,
"lineBreakBeforeControlFlowKeywords": false,
"lineBreakBeforeEachArgument": false,
"respectsExistingLineBreaks": true
}
17 changes: 17 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
indentation: 2
line_length:
warning: 120
error: 200
function_body_length:
warning: 80
error: 120
cyclomatic_complexity:
warning: 25
error: 40
identifier_name:
min_length: 1
disabled_rules:
- trailing_comma
- opening_brace
excluded:
- .build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Devtail
# devtail

A macOS menu bar app for launching and monitoring local development processes.

Expand Down
Loading
Loading