44 push :
55 branches :
66 - main
7- - dev
87 pull_request :
98 paths :
109 - ' .swiftlint.yml'
1312 - " Source/**"
1413 - " Tests/**"
1514
15+ permissions :
16+ contents : read
17+
18+ concurrency :
19+ group : flex-ui-${{ github.head_ref }}
20+ cancel-in-progress : true
21+
1622jobs :
17- SwiftLint :
18- runs-on : ubuntu-latest
19- steps :
20- - uses : actions/checkout@v6
21- - name : GitHub Action for SwiftLint
22- uses : norio-nomura/action-swiftlint@3.2.1
23- with :
24- args : --strict
25- env :
26- DIFF_BASE : ${{ github.base_ref }}
2723 iOS :
2824 name : ${{ matrix.name }}
2925 runs-on : ${{ matrix.runsOn }}
@@ -34,29 +30,15 @@ jobs:
3430 fail-fast : false
3531 matrix :
3632 include :
37- - destination : " OS=18.1,name=iPhone 16 Pro"
38- name : " iOS 18.1"
39- xcode : " Xcode_16.1"
40- runsOn : macOS-14
33+ # iOS
34+ - { platform: iOS, name: "iOS 18.1", xcode: "Xcode_16.1", runsOn: macOS-14, destination: "OS=18.1,name=iPhone 16 Pro" }
4135 steps :
42- - uses : actions/checkout@v6
43- - name : ${{ matrix.name }}
44- run : xcodebuild test -scheme "flex-ui" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
45- - uses : actions/upload-artifact@v5
36+ - name : Checkout code
37+ uses : actions/checkout@v6
38+ - name : Run tests - ${{ matrix.name }}
39+ run : xcodebuild test -scheme "flex-ui" -destination "${{ matrix.destination }}" -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" clean || exit 1
40+ - name : Upload test results
41+ uses : actions/upload-artifact@v5
4642 with :
4743 name : ${{ matrix.name }}
48- path : test_output
49-
50- discover-typos :
51- name : Discover Typos
52- runs-on : macOS-13
53- env :
54- DEVELOPER_DIR : /Applications/Xcode_14.1.app/Contents/Developer
55- steps :
56- - uses : actions/checkout@v6
57- - name : Discover typos
58- run : |
59- export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin"
60- python3 -m pip install --upgrade pip
61- python3 -m pip install codespell
62- codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*,./.git/*"
44+ path : test_output
0 commit comments