Skip to content

Commit 2d713a6

Browse files
committed
Standardize CI workflows
- Update swift-format to Swift 6.2 - Standardize swiftlint to simple variant - Remove Windows CI jobs (too flaky) - Add README validation where missing - Add missing workflow files All swift-* packages now have consistent CI configuration: - Test on minimum Swift version (macOS) - Test on Swift 6.2 (macOS & Ubuntu) - README validation tests - No Windows support
1 parent 8234c3c commit 2d713a6

File tree

3 files changed

+6
-60
lines changed

3 files changed

+6
-60
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,6 @@ jobs:
116116
- name: Run tests
117117
run: swift test
118118

119-
windows:
120-
name: Windows (Swift 6.2)
121-
runs-on: windows-latest
122-
steps:
123-
- uses: actions/checkout@v5
124-
125-
- uses: SwiftyLab/setup-swift@latest
126-
with:
127-
swift-version: "6.2"
128-
129-
- name: Build
130-
run: swift build
131-
132-
- name: Run tests
133-
run: swift test
134-
135119
readme:
136120
name: README Code Examples
137121
runs-on: macos-26

.github/workflows/swift-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
swift_format:
1414
name: swift-format
1515
runs-on: ubuntu-latest
16-
container: swift:6.0
16+
container: swift:6.2
1717
permissions:
1818
contents: write
1919
steps:

.github/workflows/swiftlint.yml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,13 @@
11
name: SwiftLint
2-
32
on:
43
pull_request:
5-
paths:
6-
- '**.swift'
7-
workflow_dispatch:
4+
branches: [main]
85

96
jobs:
10-
swiftlint:
11-
name: Check Code Quality
7+
lint:
128
runs-on: ubuntu-latest
139
steps:
1410
- uses: actions/checkout@v5
15-
16-
- name: Cache SwiftLint
17-
id: cache-swiftlint
18-
uses: actions/cache@v4
19-
with:
20-
path: /usr/local/bin/swiftlint
21-
key: ${{ runner.os }}-swiftlint-0.57.0
22-
23-
- name: Install SwiftLint
24-
if: steps.cache-swiftlint.outputs.cache-hit != 'true'
25-
run: |
26-
brew install swiftlint
27-
28-
- name: Verify SwiftLint installation
29-
run: |
30-
if ! command -v swiftlint &> /dev/null; then
31-
echo "❌ SwiftLint installation failed"
32-
exit 1
33-
fi
34-
swiftlint version
35-
36-
- name: Run SwiftLint
37-
run: |
38-
echo "Checking Swift code quality..."
39-
swiftlint lint --reporter github-actions-logging
40-
41-
- name: Provide fix instructions on failure
42-
if: failure()
43-
run: |
44-
echo ""
45-
echo "⚠️ SwiftLint violations found. These are warnings only."
46-
echo ""
47-
echo "To see violations locally, run:"
48-
echo " swiftlint lint"
49-
echo ""
50-
echo "To auto-fix some violations:"
51-
echo " swiftlint --fix"
11+
- name: SwiftLint
12+
run: swiftlint lint
13+
continue-on-error: true

0 commit comments

Comments
 (0)