Skip to content

Commit 7bc1e13

Browse files
committed
build and test on pull-request
1 parent 7e1582d commit 7bc1e13

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

.github/workflows/ci.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: macos-latest
11+
strategy:
12+
matrix:
13+
schemes: [iOS, macOS, tvOS, watchOS]
14+
build-config:
15+
- {
16+
scheme: "Cache-iOS",
17+
destination: "platform=iOS Simulator,name=iPhone 15",
18+
sdk: "iphonesimulator",
19+
}
20+
- {
21+
scheme: "Cache-tvOS",
22+
destination: "platform=tvOS Simulator,name=Apple TV",
23+
sdk: "appletvsimulator",
24+
}
25+
- {
26+
scheme: "Cache-watchOS",
27+
destination: "platform=watchOS Simulator",
28+
sdk: "watchsimulator",
29+
}
30+
- {
31+
scheme: "Cache-macOS",
32+
destination: "platform=generic/platform=macOS",
33+
sdk: "macosx",
34+
}
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Build
38+
run: |
39+
xcodebuild clean build \
40+
-workspace 'Cache.xcproject' \
41+
-scheme '${{ matrix.build-config['scheme'] }}' \
42+
-sdk '${{ matrix.build-config['sdk'] }}' \
43+
-destination '${{ matrix.build-config['destination'] }}'
44+
45+
- name: Execute Unit Tests
46+
run: |
47+
if [ "${{ matrix.build-config['scheme'] }}" == "Cache-watchOS" ]; then
48+
exit 0;
49+
fi
50+
51+
xcodebuild test \
52+
-workspace 'Cache.xcproject' \
53+
-scheme '${{ matrix.build-config['scheme'] }}' \
54+
-sdk '${{ matrix.build-config['sdk'] }}' \
55+
-destination '${{ matrix.build-config['destination'] }}'

Cache.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "Cache"
33
s.summary = "Nothing but cache."
4-
s.version = "7.4.0"
4+
s.version = "7.5.0"
55
s.homepage = "https://github.com/hyperoslo/Cache"
66
s.license = 'MIT'
77
s.author = { "Hyper Interaktiv AS" => "[email protected]" }

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version:5.10
22

33
import PackageDescription
44

0 commit comments

Comments
 (0)