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

[NO QA]Run tests and lint on merge into main #7632

Merged
merged 2 commits into from
Feb 10, 2022
Merged

Conversation

AndrewGable
Copy link
Contributor

Details

Runs both the lint and test workflows when we merge code into main, which will hopefully prevent us from trying to deploy unlinted code that will cause the builds to fail.

Fixed Issues

$ #7026

Tests

  1. Merge this PR
  2. Verify both tests and lint run and pass ✅

QA Steps

N/A

Tested On

N/A

@AndrewGable AndrewGable requested a review from a team as a code owner February 8, 2022 17:40
@AndrewGable AndrewGable self-assigned this Feb 8, 2022
@MelvinBot MelvinBot requested review from mountiny and removed request for a team February 8, 2022 17:40
mountiny
mountiny previously approved these changes Feb 8, 2022
Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

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

LGTM, but Rory knows the actions way better. Leaving it over to you.

Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

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

Is your intention to prevent preDeploy from triggering a staging deploy if tests fail? If so, I think you need to make other jobs, particularly version, dependent upon the results of the confirmPassingBuilds job using the needs keyword and the job-level if clause for the version job.

@AndrewGable
Copy link
Contributor Author

Got it - I thought that we could just rely on that one job failing to fail the workflow, but I will make that explicit change 👍

@AndrewGable
Copy link
Contributor Author

Ok so I think the latest changes will do what we want? Basically if lint or tests do not pass, don't continue the deploy workflow?

@roryabraham roryabraham merged commit 5748782 into main Feb 10, 2022
@roryabraham roryabraham deleted the andrew-alert-merge branch February 10, 2022 23:58
@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @roryabraham in version: 1.1.39-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @timszot in version: 1.1.39-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants