Skip to content

Commit 5ee4612

Browse files
committed
CI
1 parent 477cced commit 5ee4612

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Diff for: .github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
concurrency:
12+
group: ci-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
library:
17+
runs-on: macos-latest
18+
strategy:
19+
matrix:
20+
platform:
21+
- iOS Simulator,name=iPhone 14 Pro Max
22+
- macOS
23+
- tvOS Simulator,name=Apple TV
24+
- watchOS Simulator,name=Apple Watch Series 7 (45mm)
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Run tests
29+
run: PLATFORM="${{ matrix.platform }}" make test-library

Diff for: Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PLATFORM ?= iOS Simulator,name=iPhone 14 Pro Max
2+
3+
.PHONY: test-library
4+
test-library:
5+
xcodebuild test \
6+
-scheme functions-swift \
7+
-destination platform="$(PLATFORM)"
8+
9+
.PHONY: format
10+
format:
11+
swift format -i -r ./Sources ./Tests ./Package.swift

0 commit comments

Comments
 (0)