Skip to content

chore(lints): Add more abbreviation lints (#55) #170

chore(lints): Add more abbreviation lints (#55)

chore(lints): Add more abbreviation lints (#55) #170

Workflow file for this run

name: Code Style
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies on Ubuntu
if: runner.os == 'Linux'
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1
version: 1.0
- name: Rust Caching
uses: Swatinem/rust-cache@v2
- name: Install nightly rustfmt
# https://stegosaurusdormant.com/rustfmt-nightly/
run: rustup toolchain install nightly --allow-downgrade -c rustfmt
- name: Lint
run: |
cargo clippy --all --all-targets -- --deny warnings
cargo xtask-lint --deny-warnings
- name: Check formatting
run: cargo +nightly fmt --check