File tree 1 file changed +46
-3
lines changed
1 file changed +46
-3
lines changed Original file line number Diff line number Diff line change 5
5
paths :
6
6
- ' api/**'
7
7
- ' web/**'
8
+ - ' android/**'
8
9
- ' .github/workflows/build-and-test.yaml'
9
10
10
11
workflow_dispatch :
16
17
type : string
17
18
18
19
jobs :
19
- build-and-test :
20
- name : Build and Test
20
+ build-and-test-web-and-api :
21
+ name : Build and Test web and api
21
22
runs-on : ubuntu-latest
22
23
23
24
steps :
62
63
cd web
63
64
pnpm install
64
65
pnpm run prisma:generate
65
- pnpm run build
66
+ pnpm run build
67
+
68
+ build-and-test-android :
69
+ name : Build and Test Android
70
+ runs-on : ubuntu-latest
71
+
72
+ steps :
73
+ - name : Checkout repository
74
+ uses : actions/checkout@v4
75
+ with :
76
+ ref : ${{ github.event_name == 'workflow_dispatch' && inputs.branch || github.ref }}
77
+
78
+ - name : Set up JDK 17
79
+ uses : actions/setup-java@v3
80
+ with :
81
+ java-version : ' 17'
82
+ distribution : ' temurin'
83
+ cache : gradle
84
+
85
+ - name : Setup Gradle
86
+ uses : gradle/gradle-build-action@v2
87
+ with :
88
+ gradle-version : ' 7.2'
89
+
90
+ - name : Grant execute permission for gradlew
91
+ run : chmod +x android/gradlew
92
+
93
+ - name : Build Android app
94
+ run : |
95
+ cd android
96
+ ./gradlew assembleDebug
97
+
98
+ # - name: Run Android tests
99
+ # run: |
100
+ # cd android
101
+ # ./gradlew testDebugUnitTest
102
+
103
+ - name : Upload build artifacts
104
+ uses : actions/upload-artifact@v4
105
+ with :
106
+ name : textbee.dev-build-${{ github.ref_name }}-${{ github.sha }}.apk
107
+ path : android/app/build/outputs/apk/debug/app-debug.apk
108
+ retention-days : 7
You can’t perform that action at this time.
0 commit comments