File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : macos-15
13
+
14
+ steps :
15
+ # setup-swift doesn't support Swift 6 so use the Swift included in macos-latest.
16
+ # - name: Set up Swift
17
+ # uses: swift-actions/setup-swift@v2
18
+ # with:
19
+ # swift-version: "6.0.0"
20
+
21
+ - name : Checkout
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Select Xcode
25
+ run : sudo xcode-select -s '/Applications/Xcode_16.0.app/Contents/Developer'
26
+
27
+ - name : Get swift version
28
+ run : swift --version # Swift 6.0
29
+
30
+ - name : Check Formatting
31
+ run : swift package plugin --allow-writing-to-package-directory swiftformat --lint
32
+
33
+ - name : Build
34
+ run : swift build
35
+
36
+ - name : Run tests
37
+ run : swift test
You can’t perform that action at this time.
0 commit comments