fix(web): write tracing logs to console #343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |