Skip to content

Commit fd67836

Browse files
authored
Merge pull request #61 from synonymdev/ci/create-ci
Implement CI
2 parents 8ae2f43 + 91d3ad4 commit fd67836

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout the code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '17'
24+
distribution: 'adopt'
25+
26+
- name: Decode google-services.json
27+
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
28+
env:
29+
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
30+
31+
- name: Make gradlew executable
32+
run: chmod +x gradlew
33+
34+
- name: gradle wrapper
35+
run: gradle wrapper
36+
37+
- name: Build with Gradle
38+
run: ./gradlew build
39+
40+
- name: Run tests
41+
run: ./gradlew test
42+
43+
# TODO ADD COMPOSE TESTS STEP
44+
45+
- name: Upload test report
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: unit_test_report
49+
path: app/build/reports/tests/testDebugUnitTest/

app/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ android {
8383
isIncludeAndroidResources = true // robolectric
8484
}
8585
}
86+
lint {
87+
abortOnError = false
88+
}
8689
}
8790
composeCompiler {
8891
featureFlags = setOf(

app/src/main/res/values-pl/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,4 @@
173173
<string name="wallet__send_dialog2">Wygląda na to, że wysyłasz ponad 50% swojego salda. Czy kontynuować?</string>
174174
<string name="wallet__activity_successful">Sukces</string>
175175
<string name="wallet__activity_invoice">Faktura</string>
176-
</resources>
176+
</resources>

0 commit comments

Comments
 (0)