-
Notifications
You must be signed in to change notification settings - Fork 180
Feat: Lightweight e2e tests for iOS and Android #840
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
262f9d7
Add Maestro e2e testing
transphorm c4d68fa
Run Maestro flows in parallel
transphorm 6c56e26
Fix mobile e2e workflow
transphorm 31f77f1
Fix e2e script flow path
transphorm 0fbd2d4
prettier
transphorm 07b4d77
fix
transphorm 19ffd83
prettier
transphorm e6d40c2
standardize yml files and new formatting commands
transphorm f3b22f7
fix ndk
transphorm ae43a43
fix exclusions
transphorm 6555bdc
use double quotes for yml files
transphorm 73150e3
feedback
transphorm aec5c70
fixes
transphorm ab853c9
fixes
transphorm 432f882
fix
transphorm 643ed8c
fix ios job
transphorm d3ae090
unneeded
transphorm 6c8a3f7
fix workflows
transphorm 09ba2ea
fix launch workflow
transphorm 55a251a
fix
transphorm dc835ff
fix pipeline
transphorm bb69e7d
workflow fixes
transphorm c40e2d6
install app to emulators
transphorm 3988386
better logging
transphorm 33c63e1
save current version of test script
transphorm 5585583
android works. ios wip. update locks
transphorm 16de329
fix pipelines
transphorm 4204459
cr feedback
transphorm e84dc99
fix android e2e test
transphorm 1fbc1c7
Split mobile e2e workflow by platform (#842)
transphorm 167cb29
feedback
transphorm decd0d7
Merge branch 'dev' into codex/remove-detox-and-configure-maestro-cli
transphorm dc7e295
fixes
transphorm 28c4b19
ignore for now
transphorm 8faf185
ignore
transphorm de372e0
fix tests
transphorm c0efd03
fix ios simulator booting
transphorm 11cda72
fix ios test
transphorm cfa68b2
shutdown after run
transphorm c2d5498
fix ios test
transphorm 318b943
better timing
transphorm fb9a1c4
increase ios timeout
transphorm 367c52f
fix both flows
transphorm b959cc2
fix pipeline
transphorm 81f68dc
combine command
transphorm 1245592
fix ios
transphorm 713ce7a
break up build steps for better caching
transphorm ef39f66
remove cache
transphorm 95ec9a7
fix ios and android test pipelines
transphorm 78bc296
update logic
transphorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| version: 2 | ||
| exclusion_globs: | ||
| - "common/src/mock_certificates/**" | ||
| - "common/src/constants/mockCertificates.ts" | ||
| - 'common/src/mock_certificates/**' | ||
| - 'common/src/constants/mockCertificates.ts' |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| name: Get Version from package.json | ||
|
|
||
| description: "Gets the version from package.json and sets it as an environment variable" | ||
| description: 'Gets the version from package.json and sets it as an environment variable' | ||
|
|
||
| inputs: | ||
| app_path: | ||
| description: "Path to the app directory" | ||
| description: 'Path to the app directory' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| using: 'composite' | ||
| steps: | ||
| - name: Get version from package.json | ||
| shell: bash | ||
| run: | | ||
| VERSION=$(node -p "require('${{ inputs.app_path }}/package.json').version") | ||
| echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
| echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
This file contains hidden or 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 hidden or 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 hidden or 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
10 changes: 5 additions & 5 deletions
10
.github/workflows/artifacts.yml → .github/workflows/circuits-build.yml
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
.github/workflows/general-checks.yml → .github/workflows/common-ci.yml
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: General Self CI | ||
| name: Common CI | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
This file contains hidden or 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,72 @@ | ||
| name: Circuits Build | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'circuits/circuits/**' | ||
| - '.github/workflows/artifacts.yml' | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'circuits/circuits/**' | ||
| - '.github/workflows/artifacts.yml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ['self-hosted', 'selfxyz-org', 'ubuntu-22-04', '128ram'] | ||
|
|
||
transphorm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install cpp dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install --yes \ | ||
| build-essential \ | ||
| libgmp-dev \ | ||
| libsodium-dev \ | ||
| nasm \ | ||
| nlohmann-json3-dev \ | ||
| wget | ||
| # TODO(): Use caching | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| corepack enable | ||
| yarn set version 4.6.0 | ||
| cd circuits && yarn | ||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Download Circom Binary v2.1.9 | ||
| run: | | ||
| mkdir -p /home/runner/work | ||
| wget -qO /home/runner/work/circom https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64 | ||
| chmod +x /home/runner/work/circom | ||
| sudo mv /home/runner/work/circom /bin/circom | ||
transphorm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Print Circom version | ||
| run: circom --version | ||
|
|
||
| - name: Build cpp circuits | ||
| run: | | ||
| chmod +x circuits/scripts/build/build_cpp.sh && \ | ||
| ./circuits/scripts/build/build_cpp.sh register && | ||
| ./circuits/scripts/build/build_cpp.sh register_id && | ||
| ./circuits/scripts/build/build_cpp.sh disclose && | ||
| ./circuits/scripts/build/build_cpp.sh dsc | ||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: circuits | ||
| path: output/ | ||
transphorm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Self Contracts CI/CD | ||
| name: Contracts CI | ||
| on: | ||
| push: | ||
| branches: | ||
|
|
||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.