Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Android instrumentation Test #312

Open
wants to merge 203 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
8509287
Add analyze flutter packages job
Widcket Aug 18, 2023
5e543b3
Enable caching of pub dev packages
Widcket Aug 18, 2023
9de121e
Add test Flutter packages job
Widcket Aug 18, 2023
3ec7264
Cancel workflows on failure
Widcket Aug 18, 2023
e080e98
Add dependabot.yml
Widcket Aug 18, 2023
ece36d9
Add basic iOS test flow
Widcket Aug 21, 2023
198f18e
Fix working directory
Widcket Aug 21, 2023
12ee06a
Fix working dir of ruby step
Widcket Aug 21, 2023
d1c3a2d
Use the same working dir for ruby action
Widcket Aug 21, 2023
e649fd6
Bump ruby cache version
Widcket Aug 21, 2023
d2e69e8
Renerate Gemfile.lock
Widcket Aug 21, 2023
55700c4
Run `flutter pub get` before installing pods
Widcket Aug 21, 2023
f78d20c
Set ruby version inside ios dir as well
Widcket Aug 21, 2023
57ab709
Specify Gemfile using `BUNDLE_GEMFILE`
Widcket Aug 21, 2023
ec526cf
Use `BUNDLE_PATH`
Widcket Aug 21, 2023
255ca69
Show installed gems
Widcket Aug 21, 2023
99f2bf1
Add `flutter pub dev` step
Widcket Aug 21, 2023
e463184
Move Gemfile into `ios` dir
Widcket Aug 21, 2023
42e35b8
Add xcpretty gem
Widcket Aug 21, 2023
1e826d4
Update Gemfile.lock
Widcket Aug 21, 2023
7321437
Fix workspace filename
Widcket Aug 21, 2023
2844e61
Use `format()` instead of `join()`
Widcket Aug 21, 2023
4af1cae
Run xcpretty with bundle exec
Widcket Aug 21, 2023
80869fb
Make sure the xcodebuild destination is quoted
Widcket Aug 21, 2023
89bc637
Do not run smoke tests on PRs from forks
Widcket Aug 21, 2023
89dcc3a
Upload xcresult bundles
Widcket Aug 21, 2023
38ec507
Cache pods
Widcket Aug 21, 2023
b284f38
Use the cache action
Widcket Aug 21, 2023
5ab3ad8
Use different fork check
Widcket Aug 21, 2023
0fa8ac4
Remove xcpretty
Widcket Aug 21, 2023
dce1bb4
Add Xcode matrix
Widcket Aug 21, 2023
74be1b1
Use xcode-select directly
Widcket Aug 21, 2023
3dbf414
Fix path of xcresult bundles
Widcket Aug 21, 2023
a78409d
Add `authorize` job
Widcket Aug 22, 2023
e5d21bc
Use secrets and vars contexts
Widcket Aug 22, 2023
ba2122c
Set environment of ios-test job
Widcket Aug 22, 2023
83e7bd3
Change working dir of "Set .env" step
Widcket Aug 22, 2023
149172d
Make iOS smoke tests less flaky
Widcket Aug 25, 2023
e290fb5
Disable hardware keyboard on simulator
Widcket Aug 25, 2023
6c67e32
Add Codecov steps to iOS job
Widcket Aug 25, 2023
2326793
Specify coverage directory
Widcket Aug 25, 2023
e051d0b
Extract iOS setup into a local action
Widcket Aug 25, 2023
d5b326c
Split iOS testing jobs
Widcket Aug 25, 2023
9ac6c0f
Split Flutter jobs for each package
Widcket Aug 25, 2023
4b5eaef
Fix job name
Widcket Aug 25, 2023
4c91ed6
Add .env step to analyze job
Widcket Aug 25, 2023
b007b82
Add basic android unit tests job
Widcket Aug 27, 2023
af86dc4
Remove local.properties step
Widcket Aug 27, 2023
9185cdf
Change Gradle task
Widcket Aug 27, 2023
9aaff2c
Update Gradle
Widcket Aug 27, 2023
ef9f5d8
Remove com.vanniktech:gradle-android-junit-jacoco-plugin
Widcket Aug 27, 2023
b774241
Use Gradle wrapper
Widcket Aug 27, 2023
423a4b4
Run AGP Upgrade Assistant tool
Widcket Aug 27, 2023
886180c
Show contents of coverage report dir
Widcket Aug 27, 2023
f9d1dd8
Add Codecov step to Android unit test job
Widcket Aug 27, 2023
15de296
Remove leftover file
Widcket Aug 27, 2023
dc2d0bf
Generate only xml Jacoco report
Widcket Aug 27, 2023
2403aea
Show contents of reports dir
Widcket Aug 27, 2023
626e692
Fix reports dir
Widcket Aug 27, 2023
96e3ea0
Upload test results on failure
Widcket Aug 27, 2023
0113948
Replace jacoco task
Widcket Aug 27, 2023
cba6456
Remove jacoco task
Widcket Aug 27, 2023
e441d58
Extract Android setup into a local action
Widcket Aug 27, 2023
7f93eef
Add basic android smoke tests job
Widcket Aug 27, 2023
a18fdc1
Fix path of Android local action
Widcket Aug 27, 2023
5999866
Add `-e` flag to sed command
Widcket Aug 27, 2023
7ffc09c
Use cross-platform sed command
Widcket Aug 27, 2023
12b1e64
Update working directory to simplify paths
Widcket Aug 27, 2023
bf52ff3
Remove `--split-per-abi` flag
Widcket Aug 27, 2023
11d1eb0
Use npm instead of yarn
Widcket Aug 27, 2023
3ded2cd
Use Android API 31
Widcket Aug 27, 2023
9ef2dea
Disable universal APK
Widcket Aug 27, 2023
4dcbf2d
Specify env vars
Widcket Aug 27, 2023
4348c14
Only build for android-x86
Widcket Aug 27, 2023
09900b1
Set AVD target and chrome-related commands
Widcket Aug 27, 2023
3e03a17
Use ARM for APK build
Widcket Aug 27, 2023
8b74b00
Remove `--target-platform` flag
Widcket Aug 28, 2023
52971ab
Use matrix of Andoroid API-level
Widcket Aug 28, 2023
a32cdf8
Use existing application ID as identifier
Widcket Aug 28, 2023
01e81ec
Use API level 31
Widcket Aug 28, 2023
6beb501
Set cores and RAM size
Widcket Aug 28, 2023
a95bb06
Fix name of java input
Widcket Aug 28, 2023
6f0b9e2
Remove cores config
Widcket Aug 28, 2023
20fb2ca
Move build APK step to main workflow
Widcket Aug 28, 2023
debd5da
Remove ram-size config
Widcket Aug 28, 2023
44c4a09
Set both RAM and heap size
Widcket Aug 28, 2023
241a0a2
Set disk-size config
Widcket Aug 28, 2023
762275a
Use relative app dir on appium tests
Widcket Aug 29, 2023
605cd99
Use API-level 33
Widcket Aug 29, 2023
d525593
Remove RAM, heap and disk size configs
Widcket Aug 29, 2023
0993473
Set ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL
Widcket Aug 29, 2023
f2584f9
Set lower RAM and heap size
Widcket Aug 29, 2023
1329280
Increase RAM size
Widcket Aug 29, 2023
6c37c12
Use Ubuntu runner for android smoke tests
Widcket Aug 30, 2023
7959e51
Set 4 gigs of ram for Android emulator
Widcket Aug 30, 2023
7f7105f
Adjust disk-size config
Widcket Aug 30, 2023
0f23975
Reduce RAM size config
Widcket Aug 30, 2023
ddca857
Remove RAM and disk size configs on ubuntu runner
Widcket Aug 30, 2023
c4819b7
Use large macOS runner
Widcket Aug 30, 2023
6ad90ac
Increase emulator RAM in large macOS runner
Widcket Aug 30, 2023
0f4b0f9
Add pre-emulator-launch-script
Widcket Aug 30, 2023
8e92185
Move existing ADB commands to pre-emulator-launch-script
Widcket Aug 30, 2023
56ce7b3
Increase tests timeout
Widcket Aug 30, 2023
58b4fed
Increase emulator timeout
Widcket Aug 30, 2023
10939fc
Wipe emulator before launching
Widcket Aug 30, 2023
06db142
Move wipe command to after boot
Widcket Aug 30, 2023
c7979b1
Remove adb command
Widcket Aug 30, 2023
ab5aa2c
Tweak emulator settings
Widcket Aug 30, 2023
85a6bc6
Uninstall io.appium.settings through adb
Widcket Aug 30, 2023
25871dc
Don't uninstall Appium settings app
Widcket Aug 30, 2023
f075dbd
Update appium tests dependencies
Widcket Aug 30, 2023
0edcfc0
Update Appium capabilities
Widcket Aug 30, 2023
8e3c2ae
Use correct name for Appium capabilities
Widcket Aug 30, 2023
fb74178
Use Android API level 32
Widcket Aug 30, 2023
5d4cfc2
Use fullReset capability
Widcket Aug 30, 2023
0d7f04b
Start Chrome from adb and then remove debug hook
Widcket Aug 30, 2023
ba1823a
Install Chrome driver
Widcket Aug 30, 2023
2f2c90e
Remove chrome options
Widcket Aug 30, 2023
e6aff38
Prefix browserName capability
Widcket Aug 30, 2023
00d0715
Use prefixed chromeOptions
Widcket Aug 30, 2023
5eef992
Skip Chrome FTE from the tests
Widcket Aug 30, 2023
42a5cf4
Increase the timeout for the Chrome FTE button
Widcket Aug 30, 2023
57b0db9
Use @text to find the Chrome FTE button
Widcket Aug 30, 2023
5771465
Skip chrome sync button
Widcket Aug 30, 2023
d96143d
Clear Chrome data before starting tests
Widcket Aug 31, 2023
cf0910f
Remove fullReset capability
Widcket Aug 31, 2023
81889a6
Remove autoGrantPermissions capability
Widcket Aug 31, 2023
3f7975c
Use `Pixel` as the hardware profile
Widcket Aug 31, 2023
794b5e9
List AVD devices
Widcket Aug 31, 2023
ccdbb98
Use device ID as hardware profile
Widcket Aug 31, 2023
fbf5434
Use text ID for hardware profile
Widcket Aug 31, 2023
e9a4f74
Use Nexus S hardware profile
Widcket Aug 31, 2023
e4fe8f1
Replace log in button press with an enter
Widcket Aug 31, 2023
31098e1
Fix android integration tests
poovamraj Sep 12, 2023
8c5e73a
remove jobs to make run faster
poovamraj Sep 12, 2023
891c4bc
Update main.yml
poovamraj Sep 12, 2023
90686e8
Update main.yml
poovamraj Sep 12, 2023
9447ab4
Update main.yml
poovamraj Sep 12, 2023
0404afc
Update main.yml
poovamraj Sep 12, 2023
fe4bc78
Update main.yml
poovamraj Sep 12, 2023
20b4085
Update main.yml
poovamraj Sep 12, 2023
c35e3b1
Update main.yml
poovamraj Sep 12, 2023
61aa59c
Update main.yml
poovamraj Sep 12, 2023
7d82bfd
Update main.yml
poovamraj Sep 12, 2023
af13427
Update main.yml
poovamraj Sep 12, 2023
c048374
Update main.yml
poovamraj Sep 12, 2023
4664fbe
Update main.yml
poovamraj Sep 12, 2023
b976720
Update main.yml
poovamraj Sep 12, 2023
1f88597
Update main.yml
poovamraj Sep 12, 2023
fa2ea84
Update main.yml
poovamraj Sep 13, 2023
31fc3e3
Update main.yml
poovamraj Sep 13, 2023
27ce38f
Update main.yml
poovamraj Sep 13, 2023
cd5fa5a
Update test.js
poovamraj Sep 13, 2023
863f431
Update main.yml
poovamraj Sep 14, 2023
3775024
Update main.yml
poovamraj Sep 14, 2023
c11bba7
Update main.yml
poovamraj Sep 14, 2023
d9cb6b7
Update test.js
poovamraj Sep 14, 2023
dde60a9
Update main.yml
poovamraj Sep 14, 2023
208dbe3
Update main.yml
poovamraj Sep 14, 2023
42c0f2f
Update main.yml
poovamraj Sep 14, 2023
4d2c5e3
Update main.yml
poovamraj Sep 14, 2023
fd2108b
Update main.yml
poovamraj Sep 14, 2023
8a5fd1e
Update main.yml
poovamraj Sep 14, 2023
d0e40b6
Update main.yml
poovamraj Sep 14, 2023
303c90b
Update tests
poovamraj Sep 14, 2023
27e6183
Update main.yml
poovamraj Sep 14, 2023
f30f7fd
Update test.js
poovamraj Sep 14, 2023
57bb1d8
Update test.js
poovamraj Sep 14, 2023
d0f0d14
Update test.js
poovamraj Sep 14, 2023
4f32940
Update main.yml
poovamraj Sep 14, 2023
1503e04
Update main.yml
poovamraj Sep 14, 2023
2bce0e8
Update main.yml
poovamraj Sep 14, 2023
b1b4463
Update main.yml
poovamraj Sep 14, 2023
6ecc104
hardcode values to test ci
poovamraj Sep 14, 2023
9f7376e
Update main.yml
poovamraj Sep 14, 2023
cbbcaf7
Update example_app.dart
poovamraj Sep 14, 2023
51cbd45
Update proper domain
poovamraj Sep 14, 2023
a2c30b7
Trigger Build
poovamraj Sep 14, 2023
d0a994d
Update to fix build
poovamraj Sep 14, 2023
6bfb224
Check APK alone
poovamraj Sep 14, 2023
0939b3d
Update main.yml
poovamraj Sep 14, 2023
ba06059
Update test.js
poovamraj Sep 14, 2023
36ea9fe
Trigger Build
poovamraj Sep 14, 2023
e65dbe0
Uncomment other jobs
Widcket Sep 15, 2023
4c0b935
Set permissions and concurrency config
Widcket Sep 15, 2023
8fff442
Change trigger to pull_request
Widcket Sep 15, 2023
f3edaf2
Restore usage of `AUTH0_CUSTOM_SCHEME` var
Widcket Sep 15, 2023
c6dbfe0
Merge branch 'main' of https://github.com/auth0/auth0-flutter into ch…
Widcket Sep 15, 2023
ebfdeab
Pin remaining actions to SHA
Widcket Sep 15, 2023
6e59063
Only cancel in-progress runs on branches other than master
Widcket Sep 15, 2023
9a79093
Use the correct ref name
Widcket Sep 15, 2023
118f062
Comment out the Android smoke test job
Widcket Oct 4, 2023
a19b390
Update Kotlin version
Widcket Oct 4, 2023
90ec30c
Implement Android instrumentation test
poovamraj Oct 9, 2023
9d5d32e
Merge branch 'chore/github-actions' into fix-flutter-ci
poovamraj Oct 9, 2023
f06b428
Test Android smoke test
poovamraj Oct 9, 2023
0b4e610
Update main.yml
poovamraj Oct 9, 2023
9b9eec5
Check current location
poovamraj Oct 9, 2023
1f4e08d
Update main.yml
poovamraj Oct 9, 2023
731126c
Update main.yml
poovamraj Oct 9, 2023
6ab0852
Update main.yml
poovamraj Oct 9, 2023
a50f215
Update main.yml
poovamraj Oct 9, 2023
68e6e86
Update main.yml
poovamraj Oct 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/actions/setup-android/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Set up Android environment
description: Set up the environment for building and testing the library on Android

inputs:
flutter:
description: The version of Flutter to use
required: true

java:
description: The version of Java to use
required: true

auth0-domain:
description: The Auth0 domain
required: true

auth0-client-id:
description: The Auth0 client ID
required: true

runs:
using: composite

steps:
- name: Install Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
flutter-version: ${{ inputs.flutter }}
channel: stable
cache: true

- name: Install Flutter dependencies
working-directory: auth0_flutter/example
run: flutter pub get
shell: bash

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ inputs.java }}
cache: 'gradle'

- name: Set .env
working-directory: auth0_flutter/example
run: printf '%s\n%s\n%s' 'AUTH0_DOMAIN=${{ inputs.auth0-domain }}' 'AUTH0_CLIENT_ID=${{ inputs.auth0-client-id }}' 'AUTH0_CUSTOM_SCHEME=demo' >> .env
shell: bash

- name: Set strings.xml
working-directory: auth0_flutter/example/android/app/src/main/res/values
run: |
mv strings.xml.example strings.xml
sed -r -i.bak 's/YOUR_AUTH0_DOMAIN/${{ inputs.auth0-domain }}/' strings.xml
rm strings.xml.bak
shell: bash

- name: Set Gradle wrapper
working-directory: auth0_flutter/example/android
run: gradle wrapper
shell: bash
72 changes: 72 additions & 0 deletions .github/actions/setup-ios/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Set up iOS environment
description: Set up the environment for building and testing the library on iOS

inputs:
flutter:
description: The version of Flutter to use
required: true

xcode:
description: The version of Xcode to use
required: true

auth0-domain:
description: The Auth0 domain
required: true

auth0-client-id:
description: The Auth0 client ID
required: true

runs:
using: composite

steps:
- name: Install Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
flutter-version: ${{ inputs.flutter }}
channel: stable
cache: true

- name: Install Flutter dependencies
working-directory: auth0_flutter/example
run: flutter pub get
shell: bash

- name: Set Ruby version
working-directory: auth0_flutter/example/ios
run: ruby -e 'puts RUBY_VERSION' | tee .ruby-version
shell: bash

- name: Set up Ruby
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
with:
bundler-cache: true
cache-version: 1
working-directory: auth0_flutter/example/ios

- name: Setup Xcode
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode }}.app/Contents/Developer
shell: bash

- name: Save Xcode version
run: xcodebuild -version | tee .xcode-version
shell: bash

- id: restore-pods-cache
name: Restore Pods cache
uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7
with:
path: auth0_flutter/example/ios/Pods
key: pods-${{ hashFiles('Podfile.lock') }}-${{ hashFiles('.xcode-version') }}-v1

- name: Install pods
working-directory: auth0_flutter/example/ios
run: pod install
shell: bash

- name: Set .env
working-directory: auth0_flutter/example
run: printf '%s\n%s\n%s' 'AUTH0_DOMAIN=${{ inputs.auth0-domain }}' 'AUTH0_CLIENT_ID=${{ inputs.auth0-client-id }}' 'AUTH0_CUSTOM_SCHEME=demo' >> .env
shell: bash
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily