-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7546fe2
commit 936b0c0
Showing
4 changed files
with
210 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: XCUI Tests | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
SDK_TARGET_VERSION: | ||
description: "Target a specific SDK version. Otherwise latest" | ||
required: false | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "15.2.0" | ||
|
||
- name: Create env file | ||
env: | ||
API_TOKEN: ${{secrets.API_TOKEN}} | ||
WORKFLOW_ID: ${{secrets.WORKFLOW_ID}} | ||
SDK_TARGET_VERSION: ${{github.event.inputs.SDK_TARGET_VERSION}} | ||
run: | | ||
cd SmartCaptureDemo/EnvironmentVariables | ||
touch Env.xcconfig | ||
echo API_TOKEN="$API_TOKEN" >> Env.xcconfig | ||
echo WORKFLOW_ID="$WORKFLOW_ID" >> Env.xcconfig | ||
echo SDK_TARGET_VERSION="$SDK_TARGET_VERSION" >> Env.xcconfig | ||
- name: Build and test | ||
run: | | ||
xcodebuild \ | ||
clean build test \ | ||
-project SmartCaptureDemo.xcodeproj \ | ||
-scheme SmartCaptureDemo \ | ||
-destination 'platform=iOS Simulator,name=iPhone 15 Pro' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// SmartCaptureDemoUITests.swift | ||
// SmartCaptureDemoUITests | ||
// | ||
// Created by Sérgio de Oliveira Martins on 15/03/2024. | ||
// | ||
|
||
import XCTest | ||
|
||
final class SmartCaptureDemoUITests: XCTestCase { | ||
func testExample() throws { | ||
// UI tests must launch the application that they test. | ||
let app = XCUIApplication() | ||
app.launch() | ||
|
||
// Use XCTAssert and related functions to verify your tests produce the correct results. | ||
} | ||
} |