-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1.03 KB
/
CI.yaml
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
name: CI
on:
push:
pull_request:
branches:
- master
jobs:
unit-java-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Execute Gradle build
run: ./gradlew check
env:
UNIT_API_URL: ${{ secrets.UNIT_API_URL }}
UNIT_TOKEN: ${{ secrets.UNIT_TOKEN }}
access_token: ${{ secrets.UNIT_TOKEN }}
token_tests_user_id: ${{ secrets.TOKEN_TESTS_USER_ID }}
test_plaid_counterparty_token: ${{ secrets.TEST_PLAID_COUNTERPARTY_TOKEN }}
wallet_terms: ${{ secrets.WALLET_TERMS }}
- name: Store reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: reports
path: |
**/build/reports/
**/build/test-results/