fix: patch jackson-core #311
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: Pull Request | |
on: | |
pull_request: | |
branches: [ master ] | |
env: | |
ORG_GRADLE_PROJECT_com.basistheory.android.example.apiUrl: https://api.flock-dev.com | |
ORG_GRADLE_PROJECT_com.basistheory.android.example.apiKey: ${{ secrets.BASIS_THEORY_API_KEY }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup JDK version | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: 'gradle' | |
- name: Setup Gradle cache | |
uses: gradle/[email protected] | |
- name: Build modules | |
run: ./gradlew build -x test | |
- name: Run unit tests | |
run: ./gradlew testDebugUnitTest | |
acceptance: | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
api-level: [ 29 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup JDK version | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: 'gradle' | |
- name: Setup Gradle cache | |
uses: gradle/[email protected] | |
# - name: Setup AVD cache | |
# uses: actions/cache@v3 | |
# id: avd-cache | |
# with: | |
# path: | | |
# ~/.android/avd/* | |
# ~/.android/adb* | |
# key: avd-${{ matrix.api-level }} | |
# - name: Create AVD and generate snapshot for caching | |
# if: steps.avd-cache.outputs.cache-hit != 'true' | |
# uses: reactivecircus/android-emulator-runner@v2 | |
# with: | |
# api-level: ${{ matrix.api-level }} | |
# force-avd-creation: true | |
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
# disable-animations: false | |
# target: default | |
# arch: x86_64 | |
# profile: pixel_3a | |
# script: echo "Generated AVD snapshot for caching." | |
- name: Run tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
target: default | |
arch: x86_64 | |
profile: pixel_3a | |
script: ./gradlew connectedCheck | |
code-security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/gradle@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_API_KEY }} | |
with: | |
command: code test | |
dependencies-security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/gradle@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_API_KEY }} | |
with: | |
args: --all-sub-projects --severity-threshold=high |