From ffd893f7c88769dfcb889861cf662b18f896a55f Mon Sep 17 00:00:00 2001 From: Cody Date: Sat, 4 Mar 2023 13:52:23 -0600 Subject: Add GitHub workflow and update Nix flakes --- .github/workflows/linting.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/linting.yml (limited to '.github/workflows/linting.yml') diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..685b93a --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,33 @@ +name: Linting +on: [push, pull_request] + +jobs: + dependency-lint: + name: Dependency linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: EmbarkStudios/cargo-deny-action@v1 + with: + arguments: --all-features + command-arguments: --allow license-not-encountered + code-lint: + name: Code linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: nightly + components: clippy, rust-src + - run: cargo clippy --all-features -- --deny warnings + code-format: + name: Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: nightly + components: rustfmt, rust-src + - run: cargo fmt -- --check -- cgit v1.2.3