Skip to content

Commit

Permalink
Setup cargo deny (#133)
Browse files Browse the repository at this point in the history
* Configure cargo deny

* add cargo-deny CI check

* Remove Editor specifics and Cargo.lock from gitignore

* Prevents CI pipeline from update Cargo.lock

* remove macos artifacts from .gitignore

* Update Cargo.lock
  • Loading branch information
Lohann authored Jul 7, 2023
1 parent 0d99d92 commit 20afba2
Show file tree
Hide file tree
Showing 4 changed files with 7,663 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ jobs:
components: clippy

- name: cargo clippy
run: cargo clippy --workspace --examples --tests --all-features -- -D warnings
run: cargo clippy --locked --workspace --examples --tests --all-features -- -D warnings

cargo-deny:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: cargo-deny check
uses: EmbarkStudios/cargo-deny-action@v1

test:
runs-on: ubuntu-latest
Expand All @@ -61,4 +70,4 @@ jobs:
run: ./pull_nodes.sh

- name: cargo test
run: cargo test --all-features --workspace
run: cargo test --locked --all-features --workspace
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
**/target/
/target
/Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
Loading

0 comments on commit 20afba2

Please sign in to comment.