-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.29 KB
/
frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
- name: Test (local)
run: ./gradlew test
- name: Test (emulator)
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: ./frontend
script: ./gradlew connectedCheck
- name: Report
uses: FlickerSoul/android-test-report-actions@v1.2
with:
working-directory: "./frontend"
show-skipped: "true"
- name: Lint
run: |
./gradlew lint
./gradlew ktlintCheck