Skip to content

Merge branch 'deployment-spec-sdk' of github.com:hasura/ndc-hub into … #243

Merge branch 'deployment-spec-sdk' of github.com:hasura/ndc-hub into …

Merge branch 'deployment-spec-sdk' of github.com:hasura/ndc-hub into … #243

Workflow file for this run

name: lint
on:
push:
jobs:
cargo-fmt:
name: check formatting with cargo fmt
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-D warnings" # fail on warnings
steps:
- uses: actions/checkout@v4
- name: install tools
run: |
rustup show
- uses: Swatinem/rust-cache@v2
- name: check formatting
run: |
cargo fmt --all --check
cargo-clippy:
name: lint with cargo clippy
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-D warnings" # fail on warnings
steps:
- uses: actions/checkout@v4
- name: install tools
run: |
rustup show
- uses: Swatinem/rust-cache@v2
- name: clippy
run: |
cargo clippy