-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.29 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
name: iOS Tests
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
ios-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.29.0'
channel: 'stable'
- name: Verify Flutter Installation
run: flutter doctor -v
- name: Install dependencies
run: |
brew install xcresultparser
flutter pub get
cd example/ios
pod install
cd ../..
- name: Run tests
run: |
xcodebuild test -workspace ./example/ios/Runner.xcworkspace \
-scheme EventideTests \
-destination 'platform=iOS Simulator,name=iPhone 16,OS=18.1' \
-resultBundlePath build/reports/EventideTests.xcresult
- name: Prepare coverage xml file
run: |
xcresultparser \
--output-format cobertura \
build/reports/EventideTests.xcresult > build/reports/ios-coverage.xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4.0.1
with:
files: build/reports/ios-coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}