Skip to content
name: Check code style
on:
pull_request:
branches:
- master
jobs:
spotless-check:
runs-on: ubuntu-latest
steps:
- name: Enable KVM group perms
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
ls /dev/kvm
- name: Checkout repository
uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/[email protected]
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Spotless Check
run: ./gradlew spotlessCheck