Skip to content

Merge pull request #48 from shopware/dependabot/cargo/dependencies-bc… #76

Merge pull request #48 from shopware/dependabot/cargo/dependencies-bc…

Merge pull request #48 from shopware/dependabot/cargo/dependencies-bc… #76

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
jobs:
rustfmt:
name: Rustfmt (format)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest stable Rust version
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
run: cargo fmt -- --check
clippy_check:
name: Clippy check (lint)
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-Dwarnings"
steps:
- uses: actions/checkout@v4
- name: Install latest stable Rust version
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Run clippy
run: cargo clippy --locked