8000 chore: removed travis yml and added git action support by mnoman09 · Pull Request #411 · optimizely/android-sdk · GitHub
[go: up one dir, main page]

Skip to content

chore: removed travis yml and added git action support #411

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

Merged
merged 8 commits into from
Mar 24, 2022

Conversation

mnoman09
Copy link
Contributor
@mnoman09 mnoman09 commented Mar 17, 2022

Summary

  • We remove travis yaml from android and moved all the stages to git action.

Test plan

All tests should pass

@msohailhussain msohailhussain marked this pull request as ready for review March 17, 2022 16:35
@msohailhussain msohailhussain requested a review from a team as a code owner March 17, 2022 16:35
Copy link
Contributor
@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

Looks great! I have a couple of suggestions/clarification.
Also please fix the PR title (it should be "chore: remove...") and description (empty)

strategy:
fail-fast: false
matrix:
api-level: [21, 25, 26, 29]
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand that github has an issue supporting AVD 31+.
Can we change "compile_sdk_version" to 31 (no need for "target_sdk_version") since it's required to run other fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I think we can change android compile sdk version to 31 it should cause no problem. As we already tested that on PR #406

Comment on lines +74 to +80
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
Copy link
Contributor

Choose a reason for hiding this comment

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

These steps are repeated for all tasks. Just wondering if we can factor out as a function to simplify this workflow file. github needs to improve it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure we can refactor it and move to seperate yaml then use it as uses. As of right now I don't there is any way to reuse the steps by keeping it in same file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think with current implementation it is difficult to add reusable workflow so can we refactor it later if possible?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me!

Copy link
Contributor

Choose a reason for hiding this comment

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

@mnoman09 Can you just change compile_sdk_version to 31 and then we can merge it.

@mnoman09 mnoman09 changed the title Feat: Removed travis yml and added git action support chore: removed travis yml and added git action support Mar 21, 2022
@jaeopt
Copy link
Contributor
jaeopt commented Mar 23, 2022

@mnoman09 I see unit tests fail. Can we try to revert the last commit and then upgrade compile_sdk_version only (keeping target_sdk_version to 29)? The fix to support target_sdk_version 31+ will be handled in a separate PR (#400).

@mnoman09
Copy link
Contributor Author

@mnoman09 I see unit tests fail. Can we try to revert the last commit and then upgrade compile_sdk_version only (keeping target_sdk_version to 29)? The fix to support target_sdk_version 31+ will be handled in a separate PR (#400).

I made the changes as requested.

@mnoman09 mnoman09 removed their assignment Mar 24, 2022
Copy link
Contributor
@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

@jaeopt jaeopt merged commit 0c126af into master Mar 24, 2022
@jaeopt jaeopt deleted the mnoman/gitAction branch March 24, 2022 18:42
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.

3 participants
0