forked from sureshe456/MauiUITestSample
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 2.19 KB
/
uitest-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
# Don't forget to add these secrets in your GitHub repository:
# - P12_FILE_BASE64: The P12 certificate file to sign the ipa file, encoded as Base64.
# - P12_PASSWORD: The password for the P12 certificate file to sign the ipa file.
# - APPSTORE_ISSUER_ID: Issuer ID associated to the Apple Developer API key. This can be found on https://appstoreconnect.apple.com/.
# - APPSTORE_KEY_ID: Key ID associated to the Apple Developer API key, this is associated to the private key below. This can be found on https://appstoreconnect.apple.com/.
# - APPSTORE_PRIVATE_KEY: Private key to the Apple Developer API Key. This can be downloaded on https://appstoreconnect.apple.com/.
# More information about the various Apple keys and files can be found here: https://learn.microsoft.com/dotnet/maui/ios/apple-account-management
# - APPCENTER_TOKEN_IOS: App Center API key that can access the App Center iOS app definition.
# More information on the App Center API tokens can be found here: https://learn.microsoft.com/appcenter/api-docs/
name: Test .NET MAUI iOS App
on:
workflow_dispatch:
# Replace these variables to match your project
env:
BUILD_CONFIGURATION: Release
DOTNET_VERSION: 7.0.x
MAUI_CSPROJ_TO_BUILD: MauiUITestSample/MauiUITestSample.csproj
UITEST_CSPROJ_TO_BUILD: MyAppTests/MyAppTests.csproj
# Should match the values for the TargetFrameworks node in the .NET MAUI csproj file. Also make sure this matches DOTNET_VERSION.
TFM_PREFIX: net7.0
# Find this in the ApplicationId node in the .NET MAUI csproj file
APP_ID: com.companyname.mauiuitestsample
# App Center configuration
TEST_DEVICES: 1f1515d2
APP_DEFINITION: xtc-Xamarin-Forms/MauiTest-iOS
TEST_SERIES: master
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install .NET MAUI Workload
run: dotnet workload install maui
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal