-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (46 loc) · 1.46 KB
/
Build.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
name: Build, Test, Check, Package
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Build
run: |
./syncComposeSharedSources.sh
./gradlew --no-daemon compileReleaseSources
- name: Test
run: ./gradlew --no-daemon test
- name: Lint
run: ./gradlew --no-daemon :wordle-compose-android:lintRelease -x lint
- name: Publish Test Reports
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Dist
env:
PLAYSTORE_SECRET_PASSPHRASE: ${{ secrets.PLAYSTORE_SECRET_PASSPHRASE }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
run: |
playstore_file=$(_ci/decrypt_keystore.sh)
./gradlew --no-daemon \
-Pci=true \
-Pplaystore.keystore.file="$playstore_file" \
-Pplaystore.keystore.password="$KEYSTORE_PASSWORD" \
-Pplaystore.keystore.key_password="$KEYSTORE_KEY_PASSWORD" \
:wordle-compose-desktop:assembleDist \
:wordle-compose-android:assembleRelease \
-x lint