-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (39 loc) · 1011 Bytes
/
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
41
42
name: Xcode - Build and Analyze
on:
push:
branches:
- main
- feature/*
pull_request:
branches:
- main
- feature/*
- swift-migration
workflow_dispatch:
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
name: Test iOS
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer"
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: "Run tests"
run: xcodebuild -project "attentive-ios-sdk.xcodeproj" -scheme "attentive-ios-sdk-framework" -destination "platform=iOS Simulator,OS=16.1,name=iPhone 13 Pro" test
lint:
name: Run Swiftlint
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install SwiftLint
run: brew install swiftlint
- name: Set Xcode 15
run: |
sudo xcode-select -switch /Applications/Xcode_15.3.app
- name: Lint
run: swiftlint