Skip to content

chore: cargo fmt

chore: cargo fmt #18

Workflow file for this run

on:
push:
branches: [ main_extension ]
pull_request:
branches: [ main_extension ]
name: Extension
jobs:
test:
name: Lint extension
runs-on: ubuntu-latest
steps:
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config curl build-essential
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install clippy & rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Format
working-directory: extension
run: cargo fmt --all --check
- name: Lint
working-directory: extension
run: cargo clippy --all -- -D warnings
- name: Run cargo check
working-directory: cli
run: cargo check --all