-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (56 loc) Β· 2.18 KB
/
pr_checker.yml
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
name: TerningPoint PR Checker
on:
pull_request:
branches: [ develop ]
defaults:
run:
shell: bash
working-directory: .
jobs:
build:
name: PR Checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 18
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 18
- name: Change gradlew permissions
run: chmod +x ./gradlew
- name: Create Local Properties
run: touch local.properties
- name: Access Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
TEST_BASE_URL: ${{ secrets.TEST_BASE_URL }}
NATIVE_APP_KEY: ${{ secrets.NATIVE_APP_KEY }}
NATIVEAPPKEY: ${{ secrets.NATIVEAPPKEY }}
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
RELEASE_STORE_FILE: ${{ secrets.RELEASE_STORE_FILE }}
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
AMPLITUDE_DEV_KEY: ${{ secrets.AMPLITUDE_DEV_KEY }}
AMPLITUDE_PROD_KEY: ${{ secrets.AMPLITUDE_PROD_KEY }}
run: |
echo base.url=\"$BASE_URL\" >> local.properties
echo test.base.url=\"$TEST_BASE_URL\" >> local.properties
echo native.app.key=\"$NATIVE_APP_KEY\" >> local.properties
echo nativeAppKey=\"$NATIVEAPPKEY\" >> local.properties
echo release.keyAlias=\"$RELEASE_KEY_ALIAS\" >> local.properties
echo release.keyPassword=\"$RELEASE_KEY_PASSWORD\" >> local.properties
echo release.storeFile=\"$RELEASE_STORE_FILE\" >> local.properties
echo release.storePassword=\"$RELEASE_STORE_PASSWORD\" >> local.properties
echo amplitudeDevKey=\"$AMPLITUDE_DEV_KEY\" >> local.properties
echo amplitudeProdKey=\"$AMPLITUDE_PROD_KEY\" >> local.properties