-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (46 loc) · 1.37 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
41
42
43
44
45
46
47
48
49
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 lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: "Install clang-format"
run: sudo apt -y install clang-format-11
- name: "Run lint"
run: |
echo "Running lint"
find . \( \
-path "./Vendor/*" -prune -o \
-path "./*/Pods/*" -prune -o \
-path "./DerivedData/*" -prune -o \
-path "./build/*" -prune -o \
-path "./*/DerivedData/*" -prune -o \
-path "./*/build/*" -prune -o \
-path "./attentive-ios-sdk.xc*" -prune \
\) \
-o -name "*.h" -o -name "*.m" -print | xargs clang-format --dry-run --Werror --assume-filename=Objective-C