-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from adobe/dev-v3.x
Merge `dev-v3.x` into `staging` for 3.0.0.beta.1-SNAPSHOT release
- Loading branch information
Showing
164 changed files
with
9,982 additions
and
8,660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
android: circleci/[email protected] | ||
android: circleci/[email protected] | ||
codecov: codecov/[email protected] | ||
|
||
workflows: | ||
version: 2 | ||
aepsdk-core-ci: | ||
aepsdk-assurance-ci: | ||
jobs: | ||
- build-and-unit-test | ||
- functional-test | ||
|
||
jobs: | ||
build-and-unit-test: | ||
executor: | ||
name: android/android-machine | ||
name: android/android-docker | ||
resource-class: large | ||
tag: 2022.01.1 | ||
tag: 2024.01.1 | ||
|
||
steps: | ||
- checkout | ||
|
@@ -25,39 +26,48 @@ jobs: | |
command: make checkformat | ||
|
||
- run: | ||
name: Generate release build | ||
command: make generate-library-release | ||
name: Assemble Phone Release | ||
command: make assemble-phone-release | ||
|
||
- run: | ||
name: Generate JavaDoc | ||
command: make javadoc | ||
name: Run Assurance Unit Tests with coverage | ||
command: make unit-test-coverage | ||
|
||
- run: | ||
name: Run Unit tests | ||
command: make unit-test | ||
- codecov/upload: | ||
file: ./code/assurance/build/reports/coverage/test/phone/debug/report.xml | ||
flags: unit-tests | ||
|
||
- store_test_results: | ||
path: code/assurance/build/test-results/ | ||
|
||
- store_artifacts: | ||
path: code/assurance/build/reports | ||
|
||
- store_test_results: | ||
path: code/assurance/build/test-results/testPhoneDebugUnitTest | ||
- run: | ||
name: Generate JavaDoc | ||
command: make javadoc | ||
|
||
|
||
functional-test: | ||
executor: | ||
name: android/android-machine | ||
resource-class: large | ||
tag: 2022.01.1 | ||
tag: 2024.01.1 | ||
|
||
steps: | ||
- checkout | ||
|
||
- android/start-emulator-and-run-tests: | ||
system-image: system-images;android-29;default;x86 | ||
post-emulator-launch-assemble-command: make build-release | ||
test-command: make functional-test | ||
post-emulator-launch-assemble-command: make assemble-phone-release | ||
test-command: make functional-test-coverage | ||
|
||
- codecov/upload: | ||
file: "./code/core/build/reports/coverage/androidTest/phone/debug/connected/report.xml" | ||
flags: functional-tests | ||
|
||
- store_artifacts: | ||
path: code/assurance/build/reports | ||
|
||
- store_test_results: | ||
path: code/assurance/build/outputs/androidTest-results | ||
path: code/assurance/build/outputs/androidTest-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,69 @@ | ||
name: Publish package to the Maven Central Repository | ||
name: Publish Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
## Manual Workflow trigger | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'tag/version' | ||
required: true | ||
|
||
action_tag: | ||
description: 'Create tag? ("no" to skip)' | ||
required: true | ||
default: 'yes' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Verify version | ||
run: | | ||
set -eo pipefail | ||
echo Release version: ${{ github.event.inputs.tag }} | ||
(./scripts/version.sh -v ${{ github.event.inputs.tag }}) | ||
- name: Import GPG key | ||
env: | ||
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | ||
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | ||
run: | | ||
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes | ||
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes | ||
- name: Publish to maven central repository | ||
- name: Publish to Maven Central Repository | ||
run: make ci-publish-main | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: release-drafter/release-drafter@v5 | ||
if: ${{ github.event.inputs.action_tag == 'yes' }} | ||
with: | ||
name: v${{ github.event.inputs.tag }} | ||
tag: v${{ github.event.inputs.tag }} | ||
version: v${{ github.event.inputs.tag }} | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Update Extension Version | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'New version to use for the Assurance extension. Example: 3.0.0' | ||
required: true | ||
|
||
|
||
core-dependency: | ||
description: '[Optional] Update Core dependency in pom.xml. Example: 3.0.0' | ||
required: false | ||
|
||
jobs: | ||
update-version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update Versions | ||
run: (./scripts/version.sh -u -v ${{ github.event.inputs.version }} -d "Core ${{ github.event.inputs.core-dependency }}") | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ github.token }} | ||
commit-message: Updating version to ${{ github.event.inputs.version }}. | ||
branch: version-${{ github.event.inputs.version }}-update | ||
delete-branch: true | ||
title: Updating version to ${{ github.event.inputs.version }} | ||
body: Updating version to ${{ github.event.inputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.