From 21ebb3819b314273f9932c6ccc2b31a77b67b7a2 Mon Sep 17 00:00:00 2001 From: Morgan Mccauley Date: Mon, 11 Dec 2023 15:55:03 +1300 Subject: [PATCH] ci: Add CI for `block-streamer/` --- .github/workflows/block-streamer-ci.yml | 68 +++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/block-streamer-ci.yml diff --git a/.github/workflows/block-streamer-ci.yml b/.github/workflows/block-streamer-ci.yml new file mode 100644 index 000000000..5b3c1d9ac --- /dev/null +++ b/.github/workflows/block-streamer-ci.yml @@ -0,0 +1,68 @@ +name: Block Streamer + +on: + push: + branches: [ main ] + paths: + - "block-streamer/**" + pull_request: + branches: [ main, stable ] + paths: + - "block-streamer/**" + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check + working-directory: ./block-streamer + run: cargo check + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Test + working-directory: ./block-streamer + run: cargo test + + + format: + name: Format + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.68.0 + override: true + profile: minimal + components: rustfmt + - name: Check formatting + working-directory: ./block-streamer + run: | + cargo fmt -- --check + + clippy: + name: Clippy + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.68.0 + override: true + profile: minimal + components: clippy + - name: Clippy check + working-directory: ./block-streamer + run: | + cargo clippy