Skip to content

Commit

Permalink
Add "preview build" support to Bitrise (#5807)
Browse files Browse the repository at this point in the history
The Bitrise workflows for QA builds and e2e tests now support using
"preview builds" from the core monorepo [1]. The release builds still
won't work with preview builds, which should ensure we don't
accidentally include a preview build in a release.

[1]: https://github.com/MetaMask/core/blob/main/docs/contributing.md#using-packages-in-other-projects-during-developmenttesting
  • Loading branch information
Gudahtt authored Mar 8, 2023
1 parent 65ef08a commit ccdf2a9
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ workflows:
inputs:
- command: audit:ci
title: Audit Dependencies
code_setup_dev:
before_run:
- setup
steps:
- script@1:
title: Generate `.npmrc` file for preview builds
inputs:
- content: |
#!/bin/bash
printf '%s\n\n%s' '@metamask:registry=https://npm.pkg.github.com' "//npm.pkg.github.com/:_authToken=${PACKAGE_READ_TOKEN}" > .npmrc
after_run:
- code_setup

# Notifications utility workflows
# Provides values for commit or branch message and path depending on commit env setup initialised or not
Expand Down Expand Up @@ -141,7 +153,7 @@ workflows:
title: Detox - Install CLI
android_e2e_test:
before_run:
- code_setup
- code_setup_dev
- e2e_setup
after_run:
- _e2e_notify_on_slack
Expand All @@ -168,7 +180,7 @@ workflows:
is_always_run: false
ios_e2e_test:
before_run:
- code_setup
- code_setup_dev
- e2e_setup
after_run:
- _e2e_notify_on_slack
Expand Down Expand Up @@ -257,7 +269,7 @@ workflows:
is_always_run: false
create_qa_builds:
before_run:
- code_setup
- code_setup_dev
steps:
- build-router-start@0:
inputs:
Expand Down Expand Up @@ -331,7 +343,7 @@ workflows:
title: Bitrise Deploy Sourcemaps
build_android_qa:
before_run:
- code_setup
- code_setup_dev
after_run:
- _upload_apk_to_browserstack
- _build_failure_notify_on_slack
Expand Down Expand Up @@ -510,7 +522,7 @@ workflows:
title: Deploy Source Map
build_ios_qa:
before_run:
- code_setup
- code_setup_dev
after_run:
- _build_failure_notify_on_slack
steps:
Expand Down

0 comments on commit ccdf2a9

Please sign in to comment.