-
Notifications
You must be signed in to change notification settings - Fork 84
65 lines (61 loc) · 1.98 KB
/
swift.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_iOS:
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build
run: xcodebuild -scheme PermissionsSwiftUI -destination 'generic/platform=iOS' build
# test_iOS:
# runs-on: macos-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v2
# - name: Setup Xcode
# uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: latest-stable
# - name: Test large screen device
# run: xcodebuild -scheme PermissionsSwiftUI -destination 'platform=iOS Simulator,name=iPhone 12 Pro Max' -only-testing:PermissionsSwiftUITests test
# - name: Test small screen device
# run: xcodebuild -scheme PermissionsSwiftUI -destination 'platform=iOS Simulator,name=iPod touch (7th generation)' -only-testing:PermissionsSwiftUISmallScreenTests test
Swift_format_lint:
name: Check swiftformat
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install Swiftformat
run: brew install swiftformat
- name: Format Swift code
run: swiftformat --verbose . --swiftversion 5.2
documentation_coverage:
name: Documentation coverage
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install Jazzy
run: sudo gem install jazzy
- name: Ready shell script
run: chmod +x .github/documentation_coverage.sh
- name: Execute shell script
run: .github/documentation_coverage.sh
# lint_podspec:
# name: Lint podspec
# runs-on: macos-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v2
# - name: lint podspec
# run: pod lib lint --allow-warnings