Demo application no includes support for tokenized payments with both… #27
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: Checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
ktlint: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version-file: .java-version | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run ktlint | |
run: ./gradlew ktlintCheck -Pktlint.outputToConsole=true --info | |
- name: Upload ktlint Results to Artifacts | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: ktlint-reports | |
retention-days: 5 | |
path: ./**/build/reports/ktlint | |
- name: Ktlint Report | |
uses: yutailang0119/action-ktlint@v3 | |
if: always() | |
with: | |
report-path: ./**/build/reports/ktlint/**/*xml | |
android_lint: | |
timeout-minutes: 10 | |
name: Android Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version-file: .java-version | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run Android Lint | |
run: ./gradlew lint --info | |
- name: Upload Lint Results to Artifacts | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: android-lint-reports | |
retention-days: 5 | |
path: ./**/build/reports/lint-results-* | |
- name: Android Lint Reports | |
uses: yutailang0119/action-android-lint@v3 | |
if: always() | |
with: | |
report-path: ./**/build/reports/lint-results-debug.xml | |
unit_tests: | |
timeout-minutes: 10 | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version-file: .java-version | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run Unit Tests | |
run: ./gradlew testDebugUnitTest testReleaseUnitTest --info | |
- name: Upload Test Reports to Artifacts | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: unit-test-reports | |
retention-days: 5 | |
path: ./**/build/reports/tests/** | |
# TODO: Split the unit test report to separate workflows when publishing the SDK. | |
# See https://github.com/dorny/test-reporter#recommended-setup-for-public-repositoriesg | |
- name: Test Report (debug) | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Unit Test Results (debug) | |
path: '*/build/test-results/testDebugUnitTest/*.xml' | |
reporter: java-junit | |
- name: Test Report (release) | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Unit Test Results (release) | |
path: '*/build/test-results/testReleaseUnitTest/*.xml' | |
reporter: java-junit |