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

Expo Build for PRs #246

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Expo Build for PRs #246

wants to merge 12 commits into from

Conversation

oudeismetis
Copy link
Member

@oudeismetis oudeismetis commented Oct 24, 2023

What this does

Sometimes you need/want to do a full build test for a PR. Creating a Github Action to do that when manually built.

Checklist

  • Initial version guessing at implementation
  • Add support for choosing IOS and/or Android
  • Test

How to test

Add user steps to achieve desired functionality for this feature.

@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-246 October 24, 2023 16:35 Inactive
@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-246 October 24, 2023 16:56 Inactive
run: cd mobile && yarn install

- name: 🚀 Build app
run: cd mobile && eas build --platform {{ "${{ inputs.platform }}" }} --profile development --non-interactive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-246 March 22, 2024 00:57 Inactive
@whusterj
Copy link
Member

🧟 Resurrecting this PR. I've been doing this frequently on a recent project. You've also made a fix I was about to push related to #332

If you don't mind I'll take this over and try to finish it asap.

@whusterj whusterj self-assigned this Nov 12, 2024
@whusterj whusterj added the High Priority An issue or Pull Request that should take priority over all others. Use sparingly. label Nov 12, 2024
@whusterj whusterj temporarily deployed to tn-spa-bootstrapper-br-expo-bu November 12, 2024 18:39 Inactive
@whusterj whusterj temporarily deployed to tn-spa-bootstrapper-br-expo-bu November 12, 2024 18:42 Inactive
@whusterj whusterj temporarily deployed to tn-spa-bootstrapper-br-expo-bu November 12, 2024 19:01 Inactive
@@ -50,3 +50,5 @@ jobs:
env:
EXPO_PUBLIC_BACKEND_SERVER_URL: {{ "${{ github.event.deployment_status.environment_url }}" }}
EXPO_PUBLIC_ROLLBAR_ACCESS_TOKEN: ""
SENTRY_PROJECT_NAME: ""
SENTRY_DSN: ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These Sentry vars are needed, otherwise they will be blank in the eas update JS bundle and cause the app to crash on startup: #332

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I've merged a couple ideas from in-progress work from @oudeismetis with the expo-build.yml config from @lakardion — testing this on a project now and will adjust as needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! warms my heart 🙏

env:
PR: {{ "${{ steps.findPr.outputs.pr }}" }}
outputs:
PR: {{ "${{ env.PR }}" }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's a deployment_status event, we don't need to do this as the event itself tells us the PR, URL, etc.
But we might still need this for workflow_dispatch events.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still use jwalton/gh-find-current-pr in a bunch of places we don't need to. I have an example on a project or two somewhere showing how to get the value from the deployment event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority An issue or Pull Request that should take priority over all others. Use sparingly. In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants