Skip to content

Merge pull request #37 from KjetilIN/18-doc-readme-for-v010 #40

Merge pull request #37 from KjetilIN/18-doc-readme-for-v010

Merge pull request #37 from KjetilIN/18-doc-readme-for-v010 #40

Workflow file for this run

name: Lint Rust Code
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- run: cargo clippy