Skip to content

Commit

Permalink
Merge pull request #457 from near/main
Browse files Browse the repository at this point in the history
Prod Release 19/12
  • Loading branch information
morgsmccauley committed Dec 20, 2023
2 parents 9c3738c + 61f92a8 commit 4c2d5e8
Show file tree
Hide file tree
Showing 66 changed files with 13,770 additions and 1,811 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/block-streamer-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
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@v3
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Check
working-directory: ./block-streamer
run: cargo check

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Test
working-directory: ./block-streamer
run: cargo test


format:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
profile: minimal
components: rustfmt
- name: Check formatting
working-directory: ./block-streamer
run: |
cargo fmt -- --check
clippy:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
profile: minimal
components: clippy
- name: Clippy check
working-directory: ./block-streamer
run: |
cargo clippy
Loading

0 comments on commit 4c2d5e8

Please sign in to comment.