Skip to content

Implement basic unit/instance attestation #388

Implement basic unit/instance attestation

Implement basic unit/instance attestation #388

Workflow file for this run

name: Test Android implementation
on:
# still run checks on every PR *before* the merge
pull_request:
# run the workflow once more **after** the PR has been merged
push:
branches:
- main
- development
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout (default)
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
# For pull_request_target, explicitly fetch the PR head
- name: Checkout PR head (for pull_request)
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- 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: Connected Check
run: ./gradlew pixelAVDAndroidDeviceTest --info
- name: Test Report
uses: dorny/test-reporter@v2
env:
NODE_OPTIONS: --max-old-space-size=8192
if: success() || failure()
with:
name: Android Device Tests
path: '**/build/outputs/androidTest-results/managedDevice/androidmain/**/TEST*.xml'
reporter: java-junit
list-suites: failed
list-tests: failed
use-actions-summary: true