-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (56 loc) · 1.62 KB
/
ios.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
name: "HackerNews"
on:
push:
branches:
- dev
- main
pull_request:
paths:
- '.swiftlint.yml'
- ".github/workflows/**"
- "HackerNews/**"
- "HackerNewsTests/**"
- "Modules/**"
jobs:
iOS:
name:
runs-on: macos-14
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=17.0,name=iPhone 14 Pro"
name: "iOS"
scheme: "Debug"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: make setup_build_tools
- name: Generate resources
run: make swiftgen
- name: Generate project
run: xcodegen generate
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
- name: Run tests
run: |
xcodebuild clean test \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \
-skipMacroValidation \
-scheme ${{ matrix.scheme }} \
-destination "${{ matrix.destination }}" \
-enableCodeCoverage YES || exit 1
discover-typos:
name: Discover Typos
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Discover typos
run: |
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin"
python3 -m pip install --upgrade pip
python3 -m pip install codespell
codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*,./.git/*,./fastlane/*"