Skip to content

Commit

Permalink
ci: Add CI for block-streamer/
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Dec 11, 2023
1 parent 11d3ab7 commit c77a532
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/block-streamer-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Block Streamer

on:
push:
branches: [ main ]
paths:
- "block-streamer/**"
pull_request:
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

0 comments on commit c77a532

Please sign in to comment.