Skip to content

Broadcast

Broadcast #135

Workflow file for this run

name: Check
on:
pull_request:
branches: [ "main" ]
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup component add clippy
- uses: actions/cache/restore@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: linux-x86-64-gnu-${{ hashFiles('Cargo.toml') }}
restore-keys: linux-x86-64-gnu-
- name: Check, clippy and format
run: cargo check && cargo clippy --tests -- --deny "warnings" && cargo fmt --check
- name: Deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check
arguments: --workspace
- name: Test
run: cargo test -- --nocapture
shell: bash