Skip to content

fix(web): DeviceState schema changed, update validation #346

fix(web): DeviceState schema changed, update validation

fix(web): DeviceState schema changed, update validation #346

Workflow file for this run

name: "lint"
on:
- push
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --check
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin # See 'Supported distributions' for available options
java-version: 17
- name: Download ktlint
run: |
curl -sSL https://api.github.com/repos/pinterest/ktlint/releases/latest |
jq '.assets[].browser_download_url | select(endswith("ktlint"))' |
xargs curl -sSLO
chmod +x ktlint
- name: Run ktlint
run: |
cd android
../ktlint