fix: Change navigationBar color #818
Workflow file for this run
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
name: Check Health SDK | |
on: | |
push: | |
paths: | |
- 'health-sdk/**' | |
- 'health-api-library/**' | |
- 'core-api-library/**' | |
- 'gradle/**' | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
types: [opened, edited, reopened] | |
paths: | |
- 'health-sdk/**' | |
- 'health-api-library/**' | |
- 'core-api-library/**' | |
- 'gradle/**' | |
workflow_call: | |
secrets: | |
GINI_MOBILE_TEST_CLIENT_SECRET: | |
required: true | |
HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: | |
required: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: run unit tests | |
run: ./gradlew health-sdk:sdk:testDebugUnitTest | |
- name: archive unit test results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: health-sdk-unit-test-results | |
path: health-sdk/sdk/build/reports/tests | |
build-example-app: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: build release example app for QA | |
run: > | |
./gradlew health-sdk:example-app:assembleQaRelease | |
-PclientId="gini-mobile-test" | |
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" | |
-PreleaseKeystoreFile="health_sdk_example.jks" | |
-PreleaseKeystorePassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' | |
-PreleaseKeyAlias="health_sdk_example" | |
-PreleaseKeyPassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' | |
- name: archive release example app for QA | |
uses: actions/upload-artifact@v3 | |
with: | |
name: health-sdk-example-app-qa-release | |
path: health-sdk/example-app/build/outputs/apk/qa/release | |
- name: build release example app for production | |
run: > | |
./gradlew health-sdk:example-app:assembleProdRelease | |
-PclientId="gini-mobile-test" | |
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" | |
-PreleaseKeystoreFile="health_sdk_example.jks" | |
-PreleaseKeystorePassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' | |
-PreleaseKeyAlias="health_sdk_example" | |
-PreleaseKeyPassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' | |
- name: archive release example app for production | |
uses: actions/upload-artifact@v3 | |
with: | |
name: health-sdk-example-app-prod-release | |
path: health-sdk/example-app/build/outputs/apk/prod/release | |
android-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: run android lint | |
run: ./gradlew health-sdk:sdk:lint | |
- name: archive android lint report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: health-sdk-android-lint-report | |
path: health-sdk/sdk/build/reports/lint-results*.html | |
detekt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: run detekt | |
run: ./gradlew health-sdk:sdk:detekt | |
- name: archive detekt report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: health-sdk-detekt-report | |
path: health-sdk/sdk/build/reports/detekt/*.html | |
ktlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: run ktlint | |
run: ./gradlew health-sdk:sdk:ktlintCheck | |
- name: archive ktlint report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: health-sdk-ktlint-report | |
path: health-sdk/sdk/build/reports/ktlint/**/*.html |