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