-
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 running macOS unit tests
- Loading branch information
Showing
3 changed files
with
70 additions
and
18 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.github/actions/setup-ios/action.yml → .github/actions/setup-darwin/action.yml
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,32 @@ | ||
name: Run iOS/macOS unit tests | ||
description: Execute the unit 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: Run iOS unit tests | ||
working-directory: auth0_flutter/example/${{ steps.lowercase-platform.outputs.platform }} | ||
run: xcodebuild test -scheme Runner -workspace Runner.xcworkspace -destination '${{ inputs.destination }}' -resultBundlePath unit-tests.xcresult -skip-testing:RunnerUITests | ||
shell: bash | ||
|
||
- name: Upload xcresult bundles | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | ||
if: ${{ failure() }} | ||
with: | ||
name: '${{ inputs.platform }} xcresult bundles [unit tests]' | ||
path: 'auth0_flutter/example/${{ steps.lowercase-platform.outputs.platform }}/*.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