[1.x] Remove 3DS URL Parsing #1407
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: Static Analysis | |
on: [pull_request, workflow_dispatch] | |
concurrency: | |
group: static-analysis-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
detekt: | |
name: Detekt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'microsoft' | |
- name: Run Detekt | |
run: ./gradlew detekt | |
android_lint: | |
name: Android Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'microsoft' | |
- name: Lint | |
run: ./gradlew lint | |
diffuse: | |
name: Diffuse AAR Analysis | |
runs-on: macOS-13 | |
steps: | |
# Set up environment to assemble SDK | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'microsoft' | |
# Assemble artifacts from Release branch | |
- name: Checkout Release Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: 1.x | |
- name: Assemble Release AAR on Release Branch | |
run: ./gradlew clean assembleRelease -x :Demo:assembleRelease # we exclude Demo module in assemble | |
- name: Upload Release Branch Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 1.x-aar | |
path: | | |
CorePayments/build/outputs/aar/CorePayments-release.aar | |
CardPayments/build/outputs/aar/CardPayments-release.aar | |
PayPalWebPayments/build/outputs/aar/PayPalWebPayments-release.aar | |
PayPalNativePayments/build/outputs/aar/PayPalNativePayments-release.aar | |
PaymentButtons/build/outputs/aar/PaymentButtons-release.aar | |
FraudProtection/build/outputs/aar/FraudProtection-release.aar | |
# Assemble artifacts from current branch | |
- name: Checkout Current Branch | |
uses: actions/checkout@v4 | |
- name: Assemble Release AAR on Current Branch | |
run: ./gradlew clean assembleRelease -x :Demo:assembleRelease # we exclude Demo module in assemble | |
- name: Upload Current Branch Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 1.x-current-aar | |
path: | | |
CorePayments/build/outputs/aar/CorePayments-release.aar | |
CardPayments/build/outputs/aar/CardPayments-release.aar | |
PayPalWebPayments/build/outputs/aar/PayPalWebPayments-release.aar | |
PayPalNativePayments/build/outputs/aar/PayPalNativePayments-release.aar | |
PaymentButtons/build/outputs/aar/PaymentButtons-release.aar | |
FraudProtection/build/outputs/aar/FraudProtection-release.aar | |
# Set up Diffuse | |
- name: Install Diffuse | |
run: brew install JakeWharton/repo/diffuse | |
- name: Download Workflow Artifacts | |
uses: actions/download-artifact@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'microsoft' | |
java-version: '17' | |
# Run Diffuse analysis | |
- name: Run Diffuse Analysis - CardPayments | |
run: diffuse diff --aar 1.x-aar/CardPayments/build/outputs/aar/CardPayments-release.aar 1.x-current-aar/CardPayments/build/outputs/aar/CardPayments-release.aar | |
- name: Run Diffuse Analysis - CorePayments | |
run: diffuse diff --aar 1.x-aar/CorePayments/build/outputs/aar/CorePayments-release.aar 1.x-current-aar/CorePayments/build/outputs/aar/CorePayments-release.aar | |
- name: Run Diffuse Analysis - PayPalWebPayments | |
run: diffuse diff --aar 1.x-aar/PayPalWebPayments/build/outputs/aar/PayPalWebPayments-release.aar 1.x-current-aar/PayPalWebPayments/build/outputs/aar/PayPalWebPayments-release.aar | |
- name: Run Diffuse Analysis - PayPalNativePayments | |
run: diffuse diff --aar 1.x-aar/PayPalNativePayments/build/outputs/aar/PayPalNativePayments-release.aar 1.x-current-aar/PayPalNativePayments/build/outputs/aar/PayPalNativePayments-release.aar | |
- name: Run Diffuse Analysis - PaymentButtons | |
run: diffuse diff --aar 1.x-aar/PaymentButtons/build/outputs/aar/PaymentButtons-release.aar 1.x-current-aar/PaymentButtons/build/outputs/aar/PaymentButtons-release.aar | |
- name: Run Diffuse Analysis - FraudProtection | |
run: diffuse diff --aar 1.x-aar/FraudProtection/build/outputs/aar/FraudProtection-release.aar 1.x-current-aar/FraudProtection/build/outputs/aar/FraudProtection-release.aar |