Skip to content

Commit 6a4471d

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 fe9f5d1 commit 6a4471d

File tree

3 files changed

+6
-67
lines changed

3 files changed

+6
-67
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -97,26 +97,6 @@ jobs:
9797
- name: Run tests
9898
run: swift test
9999

100-
# Windows support disabled - build completes but fails silently
101-
# Windows has various runtime/testing issues that aren't worth debugging
102-
# Focus on macOS and Linux where the library is primarily used
103-
#
104-
# windows:
105-
# name: Windows (Swift 6.2)
106-
# runs-on: windows-latest
107-
# steps:
108-
# - uses: actions/checkout@v5
109-
#
110-
# - uses: SwiftyLab/setup-swift@latest
111-
# with:
112-
# swift-version: "6.2"
113-
#
114-
# - name: Build
115-
# run: swift build
116-
#
117-
# - name: Run tests
118-
# run: swift test
119-
120100
readme:
121101
name: README Code Examples
122102
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 & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +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-
wget https://github.com/realm/SwiftLint/releases/download/0.57.0/swiftlint_linux.zip
27-
unzip swiftlint_linux.zip
28-
sudo mv swiftlint /usr/local/bin/
29-
sudo chmod +x /usr/local/bin/swiftlint
30-
31-
- name: Verify SwiftLint installation
32-
run: |
33-
if ! command -v swiftlint &> /dev/null; then
34-
echo "❌ SwiftLint installation failed"
35-
exit 1
36-
fi
37-
swiftlint version
38-
39-
- name: Run SwiftLint
40-
run: |
41-
echo "Checking Swift code quality..."
42-
swiftlint lint --reporter github-actions-logging
43-
44-
- name: Provide fix instructions on failure
45-
if: failure()
46-
run: |
47-
echo ""
48-
echo "⚠️ SwiftLint violations found. These are warnings only."
49-
echo ""
50-
echo "To see violations locally, run:"
51-
echo " swiftlint lint"
52-
echo ""
53-
echo "To auto-fix some violations:"
54-
echo " swiftlint --fix"
11+
- name: SwiftLint
12+
run: swiftlint lint
13+
continue-on-error: true

0 commit comments

Comments
 (0)