-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.44 KB
/
quality.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
name: CI
on:
pull_request:
branches: [ develop, master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v1.4.3
with:
java-version: '17'
- name: Setup secret.properties
env:
ADMOB_APPLICATION_ID: ${{ secrets.ADMOB_APPLICATION_ID }}
ADMOB_HOME_BANNER_ID: ${{ secrets.ADMOB_HOME_BANNER_ID }}
ADMOB_TRANSPOSER_BANNER_ID: ${{ secrets.ADMOB_TRANSPOSER_BANNER_ID }}
FAKE_ADMOB_HOME_BANNER_ID: ${{ secrets.FAKE_ADMOB_HOME_BANNER_ID }}
GITHUB_PACKAGES_USER: ${{ secrets.PACKAGES_USER }}
GITHUB_PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
run: |
echo "ADMOB_APPLICATION_ID=\"$ADMOB_APPLICATION_ID\"" >> ./secret.properties |
echo "ADMOB_HOME_BANNER_ID=\"$ADMOB_HOME_BANNER_ID\"" >> ./secret.properties |
echo "ADMOB_TRANSPOSER_BANNER_ID=\"$ADMOB_TRANSPOSER_BANNER_ID\"" >> ./secret.properties |
echo "GITHUB_PACKAGES_USER=\"$GITHUB_PACKAGES_USER\"" >> ./secret.properties |
echo "GITHUB_PACKAGES_TOKEN=\"$GITHUB_PACKAGES_TOKEN\"" >> ./secret.properties
- name: Setup firebase auth
env:
FIREBASE_AUTH: ${{ secrets.FIREBASE_AUTH }}
run: echo "$FIREBASE_AUTH" > ./app/google-services.json
- name: Run all tests
run: ./gradlew test