-
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.
- Loading branch information
Showing
133 changed files
with
2,620 additions
and
1,450 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,8 @@ | ||
staged_files=($(git diff --staged --name-only --diff-filter=ACDMRT -- auth0_flutter/darwin)) | ||
|
||
# Only proceed if there are staged files from the 'darwin' directory | ||
if [ ${#staged_files[@]} -eq 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
scripts/generate-symlinks.sh |
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,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
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 ${{ inputs.platform }} 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 }}/unit-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Symlinks | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
permissions: {} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
check-symlinks: | ||
name: Check symlinks of iOS/macOS native code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: Run check | ||
run: | | ||
scripts/generate-symlinks.sh | ||
if git diff HEAD --quiet --diff-filter=ACDMRT; then | ||
echo $'\nNo changes detected in the iOS/macOS files that require updating the symlinks.' | ||
echo 'All good.' | ||
else | ||
echo $'\nDetected changes in the iOS/macOS files that require updating the symlinks.' | ||
echo "Please run 'scripts/generate-symlinks.sh' from the repository root and commit the changes." | ||
exit 1 | ||
fi |
Oops, something went wrong.