From e50eb65078599e91a1ae81b91eb4eeabff60ddcd Mon Sep 17 00:00:00 2001 From: Bjerg Date: Mon, 24 Oct 2022 16:34:37 +0200 Subject: [PATCH] ci: add cargo deny action (#125) * ci: add `cargo-deny` workflow * ci: allow advisory failures in deny workflow * ci: only run deny workflow if `Cargo.lock` changed * chore: driveby formatting of readme --- .github/workflows/deny.yml | 38 ++++++++++++++++++++++++++++++++++++++ README.md | 7 ++++--- 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deny.yml diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml new file mode 100644 index 000000000..be7e9405c --- /dev/null +++ b/.github/workflows/deny.yml @@ -0,0 +1,38 @@ +on: + push: + branches: [main] + paths: + - 'Cargo.lock' + pull_request: + branches: [main] + paths: + - 'Cargo.lock' + +env: + RUSTFLAGS: -D warnings + NEXTEST_EXPERIMENTAL_FILTER_EXPR: 1 + CARGO_TERM_COLOR: always + +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +name: deny +jobs: + check: + runs-on: ubuntu-latest + strategy: + matrix: + checks: + - advisories + - bans licenses sources + + continue-on-error: ${{ matrix.checks == 'advisories' }} + + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Check + uses: EmbarkStudios/cargo-deny-action@v1 + with: + command: check ${{ matrix.checks }} \ No newline at end of file diff --git a/README.md b/README.md index 8ac73e041..26717d00d 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ *Blazing-fast implementation of the Ethereum protocol* -![Github Actions](https://github.com/foundry-rs/reth/workflows/ci/badge.svg) +![CI status](https://github.com/foundry-rs/reth/workflows/ci/badge.svg) +![cargo-deny status](https://github.com/foundry-rs/reth/workflows/deny/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/foundry-rs/reth?token=c24SDcMImE)][codecov] -# Build +## Build -To build this project we are currently using rust nightly for GAT support, that is planed to release in rust 1.65 (4.nov.2022). GAT's are used for Database trait in reth-interface. +To build this project we are currently using Rust nightly for GAT support, that is planed to release in rust 1.65 (4th Nov 2022). GAT's are used for the `Database` trait in `reth-interface`. ## Docs