Skip to content

Commit 545c544

Browse files
committed
test ci.yml
1 parent e42a763 commit 545c544

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

.github/workflows/pr.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
name: 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

517
jobs:
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

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import PackageDescription
55

66
let 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(

0 commit comments

Comments
 (0)