forked from aws-geospatial/amazon-location-features-demo-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.58 KB
/
test-ios-e2e.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
name: Run E2E Tests for iOS
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches: [main]
jobs:
test-iOS:
name: Test iOS App
runs-on: macos-14-xlarge
steps:
- uses: actions/checkout@v3
- name: Setup Bundler
working-directory: ./LocationServices
run: |
bundle config --local path ./vendor/bundle
bundle config --local deployment true
bundle install
- name: Setup Config
working-directory: ./LocationServices
run: |
base64 -d <<< ${{ secrets.CONFIG }} > Config.xcconfig
base64 -d <<< ${{ secrets.TEST_CONFIG }} > ConfigTest.xcconfig
echo "Contents of Config.xcconfig:"
cat Config.xcconfig
echo "Contents of ConfigTest.xcconfig:"
cat ConfigTest.xcconfig
- name: Run tests on iPad
working-directory: ./LocationServices
run: bundle exec fastlane run_e2e_tests device:"iPad Pro (12.9-inch) (6th generation)"
- name: Upload test results for iPad
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-ipad
path: ${{ env.xcresult_path }}
retention-days: 1
- name: Run tests on iPhone
working-directory: ./LocationServices
run: bundle exec fastlane run_e2e_tests device:"iPhone 14 Pro Max (17.5)"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-iphone
path: ${{ env.xcresult_path }}
retention-days: 1