-
Notifications
You must be signed in to change notification settings - Fork 25
Migrate to GitHub Actions reusable workflows #733
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
Conversation
Update build and test workflow to fix javadoc path, and use new param for artifact timestamp
Rename component to extension Delete migrated files
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your project status has failed because the head coverage (66.01%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage.
Additional details and impacted files@@ Coverage Diff @@
## dev #733 +/- ##
=============================================
- Coverage 81.59% 66.01% -15.58%
+ Complexity 2141 2020 -121
=============================================
Files 194 216 +22
Lines 8937 10633 +1696
Branches 1121 1384 +263
=============================================
- Hits 7292 7019 -273
- Misses 1091 3068 +1977
+ Partials 554 546 -8
Flags with carried forward coverage won't be shown. Click here to find out more. |
.github/workflows/maven-release.yml
Outdated
release-variant: ${{ github.event.inputs.extension }} | ||
version-validation-name: ${{ github.event.inputs.extension }} | ||
version-validation-paths: code/gradle.properties:properties_multi_module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add validation for version in code files so that we don't miss it during the release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
Job run examples with the new validation in the PR description under maven release notes
Log snippets:
Signal release example validation:
Validating version is 3.0.0
---- Validating versions in 'Signal.java' ----
* File path: /home/runner/work/aepsdk-core-android/aepsdk-core-android/code/signal/src/phone/java/com/adobe/marketing/mobile/Signal.java
PASS 'EXTENSION_VERSION' with pattern `re.compile('(^[\\s\\S]*String EXTENSION_VERSION\\s*=\\s*")([0-9]+\\.[0-9]+\\.[0-9]+)')` matches '3.0.0' in 'Signal.java'
All versions are correct!
Core release example validation:
Validating version is 3.2.0
---- Validating versions in 'CoreConstants.kt' ----
* File path: /home/runner/work/aepsdk-core-android/aepsdk-core-android/code/core/src/main/java/com/adobe/marketing/mobile/internal/CoreConstants.kt
PASS 'VERSION' with pattern `re.compile('(^[\\s\\S]*const val VERSION\\s*=\\s*")([0-9]+\\.[0-9]+\\.[0-9]+)')` matches '3.2.0' in 'CoreConstants.kt'
All versions are correct!
@timkimadobe I noticed that the new workflow is missing the |
@praveek Thank you for catching that! Updated to include that check in the CI workflow See successful |
Description
This PR migrates the Core Android repo to use the reusable workflows available in aepsdk-commons
build-and-test.yml
A migration from CircleCI to GitHub Actions
ci-lint: checkstyle checkformat
integration-test-coverage: integration-test
javadoc: core-javadoc
maven-release.yml
maven-snapshot.yml
update-version.yml
maven-release.yml
Questions for reviewers
assemble-app
rule? I couldn't find one in the existing CircleCI workflow, so I did not include it in the migration.maven-release.yml
also validate the constants files for the given extension being released too? Currently it only validates the gradle.properties valueRelated Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: