Skip to content

Commit f961169

Browse files
committed
Add GitHub CI workflow
1 parent eb2d589 commit f961169

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "concurrency"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches: [ main ]
10+
11+
concurrency:
12+
group: ci
13+
cancel-in-progress: true
14+
15+
jobs:
16+
Latest:
17+
name: Test Latest (iOS, macOS, tvOS, watchOS)
18+
runs-on: macOS-12
19+
env:
20+
DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer"
21+
timeout-minutes: 10
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
include:
26+
- destination: "OS=16.1,name=iPhone 14 Pro"
27+
name: "iOS"
28+
scheme: "Concurrency-Package"
29+
- destination: "OS=16.1,name=Apple TV"
30+
name: "tvOS"
31+
scheme: "Concurrency-Package"
32+
- destination: "OS=9.1,name=Apple Watch Series 8 (45mm)"
33+
name: "watchOS"
34+
scheme: "Concurrency-Package"
35+
- destination: "platform=macOS"
36+
name: "macOS"
37+
scheme: "Concurrency-Package"
38+
steps:
39+
- uses: actions/checkout@v3
40+
- name: ${{ matrix.name }}
41+
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<h1 align="center" style="margin-top: 0px;">concurrency</h1>
44

55
<p align="center">
6-
<a href="https://github.com/space-code/concurrency/blob/main/LICENSE"><img alt="Liscence" src="https://img.shields.io/cocoapods/l/service-core.svg?style=flat"></a>
6+
<a href="https://github.com/space-code/concurrency/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/space-code/concurrency?style=flat"></a>
77
<a href="https://developer.apple.com/"><img alt="Platform" src="https://img.shields.io/badge/platform-ios%20%7C%20osx%20%7C%20watchos%20%7C%20tvos-%23989898"/></a>
8-
<a href="https://developer.apple.com/swift"><img alt="Swift4.2" src="https://img.shields.io/badge/language-Swift5.3-orange.svg"/></a>
8+
<a href="https://developer.apple.com/swift"><img alt="Swift5.5" src="https://img.shields.io/badge/language-Swift5.5-orange.svg"/></a>
9+
<a href="https://github.com/space-code/concurrency"><img alt="CI" src="https://github.com/space-code/concurrency/actions/workflows/ci.yml/badge.svg?branch=main"></a>
10+
<a href="https://github.com/apple/swift-package-manager" alt="RxSwift on Swift Package Manager" title="RxSwift on Swift Package Manager"><img src="https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg" /></a>
911
</p>
1012

1113
## Description
@@ -55,7 +57,7 @@ testQueue.async {}
5557
## Requirements
5658
- iOS 13.0+ / macOS 10.15+ / tvOS 11.0+ / watchOS 6.0+
5759
- Xcode 14.0
58-
- Swift 5
60+
- Swift 5.5
5961

6062
## Installation
6163
### Swift Package Manager

0 commit comments

Comments
 (0)