From 930dc8e6f0f46d8c0426806bf229c0aa7c422b52 Mon Sep 17 00:00:00 2001 From: Victor Andreasson Date: Sat, 16 Mar 2024 12:07:20 +0100 Subject: [PATCH] Run tests in pipeline --- .github/workflows/tests.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 000000000..f712b3692 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,18 @@ +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: checkout + 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 + + - name: run tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + script: ./gradlew connectedCheck