Skip to content
Merged
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
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Decode google-services.json
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
env:
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}

- name: Make gradlew executable
run: chmod +x gradlew

- name: gradle wrapper
run: gradle wrapper

- name: Build with Gradle
run: ./gradlew build

- name: Run tests
run: ./gradlew test

# TODO ADD COMPOSE TESTS STEP

- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: unit_test_report
path: app/build/reports/tests/testDebugUnitTest/
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ android {
isIncludeAndroidResources = true // robolectric
}
}
lint {
abortOnError = false
}
}
composeCompiler {
featureFlags = setOf(
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@
<string name="wallet__send_dialog2">Wygląda na to, że wysyłasz ponad 50% swojego salda. Czy kontynuować?</string>
<string name="wallet__activity_successful">Sukces</string>
<string name="wallet__activity_invoice">Faktura</string>
</resources>
</resources>