Skip to content

Merge branch 'main' of github.com:edgeandnode/bytecheck #3

Merge branch 'main' of github.com:edgeandnode/bytecheck

Merge branch 'main' of github.com:edgeandnode/bytecheck #3

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
fmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust (stable + rustfmt)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
check:
name: clippy · build · test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust (stable + clippy)
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache cargo registry and target
uses: Swatinem/rust-cache@v2
- name: Clippy (deny warnings)
run: cargo clippy --all-targets --locked -- -D warnings
- name: Build
run: cargo build --release --locked
- name: Test
run: cargo test --locked