-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.26 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
name: Run CI
on:
pull_request:
branches: [ develop, main ]
jobs:
test:
runs-on: macos-13
env:
PROJECT: InMyMemory.xcodeproj
SCHEME: InMyMemory
DESTINATION: platform=iOS Simulator,name=iPhone 14,OS=latest
steps:
- uses: actions/checkout@v3
- name: Setup Xcode 15.0 Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: SPM Cache
uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData/InMyMemory*/SourcePackages/
key: ${{ runner.os }}-spm-${{ hashFiles('InMyMemory.xcodeproj/project.xcworkspace/xcshareddata/swiftpm//Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build and Test
run: |
xcodebuild test \
-project "$PROJECT" \
-scheme "$SCHEME" \
-clonedSourcePackagesDirPath SourcePackages \
-destination "$DESTINATION" \
-enableCodeCoverage YES \
-resultBundlePath ./InMyMemory.xcresult;
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
xcode: true
xcode_archive_path: ./InMyMemory.xcresult