-
Notifications
You must be signed in to change notification settings - Fork 75
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 #289 from CleverTap/develop
Release v4.5.1
- Loading branch information
Showing
44 changed files
with
602 additions
and
225 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
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,19 @@ | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Generate AAR files | ||
shell: bash | ||
run: ./gradlew :clevertap-core:assembleRelease :clevertap-geofence:assembleRelease :clevertap-hms:assembleRelease :clevertap-pushTemplates:assembleRelease :clevertap-xps:assembleRelease | ||
|
||
- name: Upload AAR and apk files | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: aars_and_apks.zip | ||
path: | | ||
clevertap-core/build/outputs/aar | ||
clevertap-hms/build/outputs/aar | ||
clevertap-xps/build/outputs/aar | ||
clevertap-geofence/build/outputs/aar | ||
clevertap-pushtemplates/build/outputs/aar |
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
File renamed without changes.
File renamed without 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
File renamed without changes.
File renamed without 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 |
---|---|---|
|
@@ -6,4 +6,4 @@ runs: | |
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: gradle | ||
# cache: gradle |
File renamed without 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Run Unit Tests And Code Coverage (DEBUG) | ||
shell: bash | ||
run: ./gradlew :clevertap-core:jacocoTestReportDebug -Pcoverage='true' :clevertap-geofence:jacocoTestReportDebug -Pcoverage='true' :clevertap-hms:jacocoTestReportDebug -Pcoverage='true' :clevertap-pushTemplates:jacocoTestReportDebug -Pcoverage='true' :clevertap-xps:jacocoTestReportDebug -Pcoverage='true' | ||
|
||
- name: Upload Unit tests | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: code-coverage-results | ||
path: | | ||
clevertap-core/build/reports/tests | ||
clevertap-core/build/reports/jacoco | ||
clevertap-hms/build/reports/tests | ||
clevertap-hms/build/reports/jacoco | ||
clevertap-xps/build/reports/tests | ||
clevertap-xps/build/reports/jacoco | ||
clevertap-geofence/build/reports/tests | ||
clevertap-geofence/build/reports/jacoco | ||
clevertap-pushtemplates/build/reports/tests | ||
clevertap-pushtemplates/build/reports/jacoco | ||
#todo : set success/failure as output and use slack action to send message . setting success failure: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions |
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,31 @@ | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Run Unit Tests And Code Coverage (DEBUG) | ||
shell: bash | ||
run: ./gradlew :clevertap-core:testDebugUnitTest :clevertap-geofence:testDebugUnitTest :clevertap-hms:testDebugUnitTest :clevertap-pushTemplates:testDebugUnitTest :clevertap-xps:testDebugUnitTest | ||
|
||
- name: Run Unit Tests And Code Coverage (RELEASE) | ||
shell: bash | ||
run: ./gradlew :clevertap-core:testReleaseUnitTest :clevertap-geofence:testReleaseUnitTest :clevertap-hms:testReleaseUnitTest :clevertap-pushTemplates:testReleaseUnitTest :clevertap-xps:testReleaseUnitTest | ||
|
||
- name: Upload Unit tests | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: unit-tests-results | ||
path: | | ||
clevertap-core/build/reports/tests | ||
clevertap-hms/build/reports/tests | ||
clevertap-xps/build/reports/tests | ||
clevertap-geofence/build/reports/tests | ||
clevertap-pushtemplates/build/reports/tests | ||
#todo : set success/failure as output and use slack action to send message . setting success failure: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions |
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,31 @@ | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Run Unit Tests And Code Coverage (DEBUG) | ||
shell: bash | ||
run: ./gradlew :clevertap-core:testDebugUnitTest :clevertap-geofence:testDebugUnitTest :clevertap-hms:testDebugUnitTest :clevertap-pushTemplates:testDebugUnitTest :clevertap-xps:testDebugUnitTest | ||
|
||
- name: Run Unit Tests And Code Coverage (RELEASE) | ||
shell: bash | ||
run: ./gradlew :clevertap-core:testReleaseUnitTest :clevertap-geofence:testReleaseUnitTest :clevertap-hms:testReleaseUnitTest :clevertap-pushTemplates:testReleaseUnitTest :clevertap-xps:testReleaseUnitTest | ||
|
||
- name: Upload Unit tests | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: unit-tests-results | ||
path: | | ||
clevertap-core/build/reports/tests | ||
clevertap-hms/build/reports/tests | ||
clevertap-xps/build/reports/tests | ||
clevertap-geofence/build/reports/tests | ||
clevertap-pushtemplates/build/reports/tests | ||
#todo : set success/failure as output and use slack action to send message . setting success failure: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions |
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,119 @@ | ||
name: Manually validate any branch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
check_mandatory: | ||
description: Check for mandatory filechanges | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
lint: | ||
description: Check lint | ||
type: boolean | ||
default: true | ||
required: false | ||
|
||
detekt: | ||
description: Run codecheck :detekt | ||
type: boolean | ||
default: true | ||
required: false | ||
|
||
checkstyle: | ||
description: Run codecheck :checkstyle | ||
type: boolean | ||
default: true | ||
required: false | ||
|
||
jacoco_debug: | ||
description: Run tests and code coverage :debug | ||
type: boolean | ||
default: true | ||
required: false | ||
|
||
jacoco_release: | ||
description: Run tests and code coverage :release | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
test_debug: | ||
description: Run just code tests :debug | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
test_release: | ||
description: Run just code tests :release | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
build_debug: | ||
description: Build AARs :debug | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
build_release: | ||
description: Build AARs :release | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
jobs: | ||
lint-static_checks-test-build: | ||
if: github.head_ref == 'develop' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout the code from Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Mandatory File Changes | ||
if: ${{ github.event.inputs.check_mandatory }} | ||
uses: ./.github/mini_flows/mandatory_filechanges | ||
|
||
- name: Setup JDK 11. | ||
uses: ./.github/mini_flows/setup_jdk | ||
|
||
- name: Run lint tests and Upload results | ||
if: ${{ github.event.inputs.lint }} | ||
uses: ./.github/mini_flows/lint | ||
|
||
- name: Static Code Check Via detekt | ||
if: ${{ github.event.inputs.detekt }} | ||
uses: ./.github/mini_flows/codechecks_detekt | ||
|
||
- name: Static Code Check Via checkstyle | ||
if: ${{ github.event.inputs.checkstyle }} | ||
uses: ./.github/mini_flows/codechecks_checkstyle | ||
|
||
- name: Unit Tests and Jacoco Coverage (DEBUG) | ||
if: ${{ github.event.inputs.jacoco_debug }} | ||
uses: ./.github/mini_flows/test_and_coverage_debug | ||
|
||
- name: Unit Tests and Jacoco Coverage (RELEASE) | ||
if: ${{ github.event.inputs.jacoco_release }} | ||
uses: ./.github/mini_flows/test_and_coverage_release | ||
|
||
- name: Unit Tests(DEBUG) | ||
if: ${{ github.event.inputs.test_debug }} | ||
uses: ./.github/mini_flows/test_debug | ||
|
||
- name: Unit Tests(RELEASE) | ||
if: ${{ github.event.inputs.test_release }} | ||
uses: ./.github/mini_flows/test_release | ||
|
||
|
||
- name: Build AARs (DEBUG) | ||
if: ${{ github.event.inputs.build_debug }} | ||
uses: ./.github/mini_flows/build_code_debug | ||
|
||
- name: Build AARs (RELEASE) | ||
if: ${{ github.event.inputs.build_release }} | ||
uses: ./.github/mini_flows/build_code_release |
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
Oops, something went wrong.