File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Pull Request CI/CD
22
3- on : [pull_request, push]
3+ on :
4+ push :
5+ paths :
6+ - " Package.swift"
7+ - " Source/**"
8+ - " Tests/**"
9+
10+ pull_request :
11+ branches : [main]
12+ paths :
13+ - " Package.swift"
14+ - " Source/**"
15+ - " Tests/**"
416
517jobs :
618 test :
719 runs-on : macos-latest
820 steps :
921 - name : Checkout
1022 uses : actions/checkout@v5
11- - name : Build
12- run : xcodebuild
23+ - name : Run build
24+ run : swift build
25+
26+ - name : Run tests
27+ run : swift test
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ import PackageDescription
55
66let package = Package (
77 name: " SwiftNetworkKit " ,
8+ platforms: [
9+ . macOS( . v10_15) ,
10+ . tvOS( . v12) ,
11+ . watchOS( . v9) ,
12+ . iOS( . v12) ,
13+ . visionOS( . v1) ,
14+ ] ,
815 products: [
916 // Products define the executables and libraries a package produces, making them visible to other packages.
1017 . library(
You can’t perform that action at this time.
0 commit comments