-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 1.08 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: ci
on:
push:
branches: [ main, release/*, feature/* ]
pull_request:
branches: [ main, release/* ]
jobs:
macos:
runs-on: macos-13
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install nats-server
run: curl --fail https://binaries.nats.dev/nats-io/nats-server/v2@latest | PREFIX='/usr/local/bin' sh
- name: Check nats-server version
run: nats-server -v
- name: List schemes
run: xcodebuild -list
- name: Build
run: xcodebuild build -scheme Nats -destination 'platform=macOS,arch=x86_64'
- name: Test
run: swift test
ios:
runs-on: macos-13
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Build
run: xcodebuild build -scheme Nats -destination generic/platform=ios
check-linter:
runs-on: macos-13
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install swift-format
run: brew install swift-format
- name: Run check
run: swift-format lint --configuration .swift-format -r --strict Sources Tests