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

add deployment checks #404

Merged
merged 10 commits into from Dec 1, 2020
Merged

add deployment checks #404

merged 10 commits into from Dec 1, 2020

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Nov 19, 2020

adds deployment checks to ensure that the framework can be published successfully.

it checks:

  • pod lib lint for all pods
  • carthage archive can run successfully
  • there isn't a release in github for the same version number already.

Together with integration tests, this should give us pretty solid coverage over things that can go wrong when deploying.

@aboedo aboedo self-assigned this Nov 19, 2020
@aboedo aboedo marked this pull request as ready for review November 19, 2020 16:17
@aboedo aboedo requested a review from vegaro November 19, 2020 16:17
@@ -67,6 +96,7 @@ workflows:
build-test:
jobs:
- runtest
- deployment-checks
Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't add a filter for this yet. The job runs pretty fast right now, so my thinking was to leave it on all commits until we have the need to limit it if stuff is slow. Not a strong preference, though.

Copy link
Member Author

Choose a reason for hiding this comment

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

update: they do take long. I'm adding the filter here as well.

Comment on lines 91 to 93
check_pods
carthage_archive
check_no_github_release_exists
Copy link
Member Author

Choose a reason for hiding this comment

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

Couldn't think of other stuff to check that wouldn't be covered by integration tests, but I think this would be pretty helpful to have


def carthage_archive
# can't use fastlane carthage integration directly because of Carthage/Xcode 12 compatibility issues:
# https://github.com/Carthage/Carthage/issues/3019
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes me so sad everytime I see it. I hope they fix it soon haha

Copy link
Member Author

Choose a reason for hiding this comment

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

+1

@aboedo aboedo force-pushed the feature/deployment_checks branch 2 times, most recently from 06777b8 to a925b03 Compare November 20, 2020 14:48
@aboedo
Copy link
Member Author

aboedo commented Nov 20, 2020

@vegaro I made a couple of updates:

  • updated xcode version for the new checks and integration tests to fix compiling issues
  • small update in carthage integration tests so that they work locally: turns out the path ../../ didn't work in the cartfile locally for whatever reason, but using a link works correctly

@aboedo aboedo requested a review from vegaro November 20, 2020 21:08
xcode: "12.0"
xcode: "12.2.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

both pod lib lint and the carthage integration step were failing on 12.0. I'm really not sure what was going on, though - 12.0 does compile locally and deployment_checks pass locally on 12.0 on my computer.
It would not find SKPaymentQueue's presentCodeRedemptionSheet, which is weird because it was added on 12.0.
Really not sure what was going on there, but this should at least fix the tests for the time being.
If we want to be compatible with Xcode 11, though, we could add a compiler flag similar to the one in ErrorUtils.

@aboedo aboedo merged commit 3fb05c0 into develop Dec 1, 2020
@aboedo aboedo deleted the feature/deployment_checks branch December 1, 2020 19:55
@aboedo aboedo mentioned this pull request Dec 1, 2020
1 task
@aboedo aboedo mentioned this pull request Jul 13, 2021
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.

None yet

2 participants