Switch from license-file to license #177
Workflow file for this run
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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
container: rust:1.82 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Format | |
run: rustup component add rustfmt | |
- name: Check Rust formatting | |
run: cargo fmt --all -- --check | |
- name: Install Rust Linter | |
run: rustup component add clippy | |
- name: Lint Rust | |
run: cargo clippy -- -D warnings | |
- name: Install Cargo Sort Check | |
run: cargo install cargo-sort | |
- name: Lint Cargo.toml | |
run: cargo sort -c . |