-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI job for macOS smoke tests [SDK-4703] (#362)
Add step for building the app
- Loading branch information
Showing
5 changed files
with
95 additions
and
21 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,42 @@ | ||
name: Run iOS/macOS smoke tests | ||
description: Execute the smoke test suite on iOS/macOS | ||
|
||
inputs: | ||
platform: | ||
description: Either iOS or macOS | ||
required: true | ||
|
||
destination: | ||
description: The destination string for xcodebuild | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Lowercase platform value | ||
id: lowercase-platform | ||
run: echo "platform=$(echo ${{ inputs.platform }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
|
||
- name: Build ${{ inputs.platform }} app | ||
working-directory: auth0_flutter/example/${{ steps.lowercase-platform.outputs.platform }} | ||
run: flutter build ${{ steps.lowercase-platform.outputs.platform }} --debug ${{ inputs.platform == 'iOS' && '--no-codesign' || '' }} | ||
shell: bash | ||
|
||
- name: Disable iOS hardware keyboard | ||
if: ${{ inputs.platform == 'iOS' }} | ||
run: defaults write com.apple.iphonesimulator ConnectHardwareKeyboard 0 | ||
shell: bash | ||
|
||
- name: Run ${{ inputs.platform }} smoke tests | ||
working-directory: auth0_flutter/example/${{ steps.lowercase-platform.outputs.platform }} | ||
run: xcodebuild test -scheme Runner -workspace Runner.xcworkspace -destination '${{ inputs.destination }}' -resultBundlePath smoke-tests.xcresult -only-testing:RunnerUITests | ||
shell: bash | ||
|
||
- name: Upload xcresult bundles | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | ||
if: ${{ failure() }} | ||
with: | ||
name: '${{ inputs.platform }} xcresult bundles (smoke tests)' | ||
path: 'auth0_flutter/example/${{ steps.lowercase-platform.outputs.platform }}/smoke-tests.xcresult' |
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
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