Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,34 @@ jobs:
build:

runs-on: ubuntu-latest
environment: Version 3 CI

steps:
- uses: actions/checkout@v3

- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
cache: gradle
cache: 'gradle'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Clear gradle caches
run: rm -rf /home/runner/.gradle/caches

- name: Decode keystore
run: |
echo "${{ secrets.KEYSTORE }}" > app/android_key.jks.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch app/android_key.jks.asc > app/android_key.jks

- name: Build project
run: ./gradlew build

- name: Run tests
run: ./gradlew test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ app/build/*
# These will be in their own repository
versions


local.properties

app/android_key.jks
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.likethesalad.stem'
android {
signingConfigs {
release {
storeFile file('/home/jon/keys/android_key.jks')
storeFile file('android_key.jks')
storePassword System.getenv('ANDROID_KEYSTORE_PASSWORD')
keyAlias System.getenv('ANDROID_KEYSTORE_ALIAS')
keyPassword System.getenv('ANDROID_KEY_PASSWORD')
Expand Down