Skip to content

Commit 1c87c9c

Browse files
authored
ail-43 Integrate github action (#51)
Co-authored-by: javavirys <[email protected]>
1 parent 3964b44 commit 1c87c9c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/actions.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 'Android application builder'
2+
3+
on: push
4+
5+
env:
6+
ANDROID_API: 31
7+
8+
jobs:
9+
10+
tests:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: javavirys/android:31
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Run tests
17+
run: ./gradlew test
18+
19+
lint:
20+
runs-on: ubuntu-latest
21+
container:
22+
image: javavirys/android:31
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Run lint
26+
run: ./gradlew lint
27+
28+
- name: Archive artifacts
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: lint
32+
path:
33+
sample/build/reports
34+
35+
buildDebugApks:
36+
needs: [ lint, tests ]
37+
runs-on: ubuntu-latest
38+
container:
39+
image: javavirys/android:31
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Build apks
43+
run: ./gradlew assembleDebug
44+
45+
- name: Archive artifacts
46+
uses: actions/upload-artifact@v3
47+
with:
48+
name: Apks
49+
path:
50+
sample/build/outputs/apk
51+
retention-days: 30

0 commit comments

Comments
 (0)