expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
840 stars 85 forks source link

[eas-cli] Add `workflow:run` #2669

Closed sjchmiela closed 2 weeks ago

sjchmiela commented 3 weeks ago

Why

We want to allow users to start workflows manually.

How

I added a createRunMutation to GraphQL and used it here. We upload project archive, eas.json and use to start a new workflow run.

Test Plan

Workflows are in beta and subject to breaking changes.

Compressing project files and uploading to EAS. Learn more: https://expo.fyi/eas-build-archive
✔ Uploaded eas.json to EAS 
✔ Uploaded project archive to EAS 1s

✔ Workflow started successfully. https://staging.expo.dev/accounts/sjchmiela/projects/staging-app/workflows/019301f1-b1b4-700d-9e3b-82dc97d76a32
linear[bot] commented 3 weeks ago

ENG-14008 Add `eas workflow:run`

github-actions[bot] commented 3 weeks ago

Size Change: +8.2 kB (+0.02%)

Total Size: 52.7 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 52.7 MB +8.2 kB (+0.02%)

compressed-size-action

github-actions[bot] commented 2 weeks ago
Subscribed to pull request File Patterns Mentions
**/* @szdziedzic, @khamilowicz
packages/eas-cli/src/build/** @szdziedzic, @khamilowicz

Generated by CodeMention

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 64.19753% with 58 lines in your changes missing coverage. Please review.

Project coverage is 52.89%. Comparing base (3f2dcc7) to head (e45e90a). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
packages/eas-cli/src/commands/workflow/run.ts 46.16% 21 Missing :warning:
...c/project/uploadAccountScopedProjectSourceAsync.ts 36.00% 16 Missing :warning:
...cli/src/project/uploadAccountScopedEasJsonAsync.ts 47.06% 9 Missing :warning:
packages/eas-cli/src/uploads.ts 20.00% 4 Missing :warning:
...cli/src/graphql/mutations/UploadSessionMutation.ts 0.00% 3 Missing :warning:
...s-cli/src/graphql/mutations/WorkflowRunMutation.ts 57.15% 3 Missing :warning:
packages/eas-cli/src/build/utils/url.ts 33.34% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2669 +/- ## ========================================== + Coverage 52.87% 52.89% +0.02% ========================================== Files 571 575 +4 Lines 21898 22029 +131 Branches 4315 4319 +4 ========================================== + Hits 11576 11649 +73 - Misses 10288 10346 +58 Partials 34 34 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 2 weeks ago

⏩ The changelog entry check has been skipped since the "no changelog" label is present.