-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (60 loc) · 1.94 KB
/
pull-request.yml
File metadata and controls
75 lines (60 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Pull Request
on:
pull_request:
branches: [ master ]
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/gradle-build-action@v2.4.2
- name: Build modules
run: ./gradlew build -x test
- name: Run unit tests
run: ./gradlew testDebugUnitTest
acceptance:
runs-on: macos-15-intel
environment: PR
env:
ORG_GRADLE_PROJECT_com.basistheory.elements.example.apiUrl: https://api.flock-dev.com
ORG_GRADLE_PROJECT_com.basistheory.elements.example.apiKey: ${{ secrets.BT_API_KEY }}
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/gradle-build-action@v2.4.2
- 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: |
adb shell settings put global window_animation_scale 0
adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0
./gradlew connectedCheck
security:
name: Security scan
uses: Basis-Theory/public-security-workflows/.github/workflows/pr-check.yml@master
secrets: inherit