-
Notifications
You must be signed in to change notification settings - Fork 24
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 #636 from adobe/staging
staging -> main (v3.0.0 release)
- Loading branch information
Showing
378 changed files
with
14,603 additions
and
18,691 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,14 +1,15 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
android: circleci/[email protected] | ||
android: circleci/[email protected] | ||
codecov: codecov/[email protected] | ||
|
||
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 | ||
|
@@ -56,40 +57,27 @@ jobs: | |
- store_artifacts: | ||
path: code/identity/build/libs | ||
|
||
- run: | ||
name: Download Codecov Uploader | ||
command: | | ||
curl -s https://codecov.io/bash > codecov; | ||
VERSION=$(grep 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2); | ||
for i in 1 256 512 | ||
do | ||
shasum -a $i -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM") || | ||
shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM" | grep -w "codecov") | ||
done | ||
- run: | ||
name: Run Core unit tests | ||
command: make core-unit-test-coverage | ||
|
||
- store_test_results: | ||
path: code/core/build/test-results/testPhoneDebugUnitTest | ||
|
||
- run: | ||
name: Upload Core unit test coverage | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/core/build/reports/coverage/test/phone/debug" -F unit-tests | ||
- codecov/upload: | ||
file: ./code/core/build/reports/coverage/test/phone/debug/report.xml | ||
flags: unit-tests | ||
|
||
- run: | ||
name: Run Signal unit tests | ||
command: make signal-unit-test-coverage | ||
|
||
- store_test_results: | ||
path: code/signal/build/test-results/testPhoneDebugUnitTest | ||
|
||
- run: | ||
name: Upload Signal coverage report | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/signal/build/reports/coverage/test/phone/debug" -F unit-tests | ||
- codecov/upload: | ||
file: ./code/signal/build/reports/coverage/test/phone/debug/report.xml | ||
flags: unit-tests | ||
|
||
- run: | ||
name: Run Lifecycle unit tests | ||
|
@@ -98,10 +86,9 @@ jobs: | |
- store_test_results: | ||
path: code/lifecycle/build/test-results/testPhoneDebugUnitTest | ||
|
||
- run: | ||
name: Upload Lifecycle coverage report | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/lifecycle/build/reports/coverage/test/phone/debug" -F unit-tests | ||
- codecov/upload: | ||
file: ./code/lifecycle/build/reports/coverage/test/phone/debug/report.xml | ||
flags: unit-tests | ||
|
||
- run: | ||
name: Run Identity unit tests | ||
|
@@ -110,16 +97,15 @@ jobs: | |
- store_test_results: | ||
path: code/identity/build/test-results/testPhoneDebugUnitTest | ||
|
||
- run: | ||
name: Upload Identity coverage report | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/identity/build/reports/coverage/test/phone/debug" -F unit-tests | ||
- codecov/upload: | ||
file: ./code/identity/build/reports/coverage/test/phone/debug/report.xml | ||
flags: unit-tests | ||
|
||
functional-test: | ||
executor: | ||
name: android/android-machine | ||
resource-class: large | ||
tag: 2022.01.1 | ||
tag: 2024.01.1 | ||
|
||
steps: | ||
- checkout | ||
|
@@ -128,38 +114,20 @@ jobs: | |
system-image: system-images;android-29;default;x86 | ||
post-emulator-launch-assemble-command: make assemble-phone | ||
test-command: make functional-test-coverage | ||
|
||
- run: | ||
name: Download Codecov Uploader | ||
command: | | ||
curl -s https://codecov.io/bash > codecov; | ||
VERSION=$(grep 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2); | ||
for i in 1 256 512 | ||
do | ||
shasum -a $i -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM") || | ||
shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM" | grep -w "codecov") | ||
done | ||
- run: | ||
name: Upload Core coverage report | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/core/build/reports/coverage/androidTest/phone/debug" -F functional-tests | ||
- run: | ||
name: Upload Signal coverage report | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/signal/build/reports/coverage/androidTest/phone/debug" -F functional-tests | ||
- run: | ||
name: Upload Lifecycle coverage report | ||
command: | | ||
bash ./codecov -v -X s3 -c -D "./code/lifecycle/build/reports/coverage/androidTest/phone/debug" -F functional-tests | ||
|
||
- codecov/upload: | ||
file: "\ | ||
./code/core/build/reports/coverage/androidTest/phone/debug/connected/report.xml,\ | ||
./code/signal/build/reports/coverage/androidTest/phone/debug/connected/report.xml,\ | ||
./code/identity/build/reports/coverage/androidTest/phone/debug/connected/report.xml,\ | ||
./code/lifecycle/build/reports/coverage/androidTest/phone/debug/connected/report.xml" | ||
flags: functional-tests | ||
|
||
integration-test: | ||
executor: | ||
name: android/android-machine | ||
resource-class: large | ||
tag: 2022.01.1 | ||
tag: 2024.01.1 | ||
|
||
steps: | ||
- checkout | ||
|
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
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 |
---|---|---|
|
@@ -28,10 +28,6 @@ on: | |
signal-version: | ||
description: 'New version to use for Signal. Example: 3.0.2' | ||
required: false | ||
|
||
branch: | ||
description: 'Branch to be used when updating versions' | ||
required: true | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
|
@@ -42,25 +38,23 @@ jobs: | |
steps: | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
uses: actions/checkout@v3 | ||
|
||
- if: ${{ github.event.inputs.core-version != '' }} | ||
name: Update Core Version | ||
run: (sh ./scripts/update-versions.sh -n Core -v ${{ github.event.inputs.core-version }}) | ||
run: (sh ./scripts/version.sh -u -n Core -v ${{ github.event.inputs.core-version }}) | ||
|
||
- if: ${{ github.event.inputs.identity-version != '' }} | ||
name: Update Identity Version | ||
run: (sh ./scripts/update-versions.sh -n Identity -v ${{ github.event.inputs.identity-version }}) | ||
run: (sh ./scripts/version.sh -u -n Identity -v ${{ github.event.inputs.identity-version }}) | ||
|
||
- if: ${{ github.event.inputs.lifecycle-version != '' }} | ||
name: Update Lifecycle Version | ||
run: (sh ./scripts/update-versions.sh -n Lifecycle -v ${{ github.event.inputs.lifecycle-version }}) | ||
run: (sh ./scripts/version.sh -u -n Lifecycle -v ${{ github.event.inputs.lifecycle-version }}) | ||
|
||
- if: ${{ github.event.inputs.signal-version != '' }} | ||
name: Update Signal Version | ||
run: (sh ./scripts/update-versions.sh -n Signal -v ${{ github.event.inputs.signal-version }}) | ||
run: (sh ./scripts/version.sh -u -n Signal -v ${{ github.event.inputs.signal-version }}) | ||
|
||
- name: Generate Commit Message | ||
shell: bash | ||
|
@@ -88,4 +82,3 @@ jobs: | |
commit-message: Update versions ${{ env.COMMIT_MSG }} | ||
title: Update versions ${{ env.COMMIT_MSG }} | ||
body: Update versions ${{ env.COMMIT_MSG }} | ||
base: ${{ github.event.inputs.branch }} |
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.