File tree Expand file tree Collapse file tree 3 files changed +6
-67
lines changed Expand file tree Collapse file tree 3 files changed +6
-67
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 11name : SwiftLint
2-
32on :
43 pull_request :
5- paths :
6- - ' **.swift'
7- workflow_dispatch :
4+ branches : [main]
85
96jobs :
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
You can’t perform that action at this time.
0 commit comments