Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Ns 2 http websocket #14

Ns 2 http websocket

Ns 2 http websocket #14

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
build_and_test:
if: ( ! github.event.pull_request.draft )
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2.5.0
- name: "Build"
run: cargo build
- name: "Test"
run: RUST_LOG=DEBUG cargo test --bins --tests --examples --workspace -- --nocapture
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Nightly with rustfmt
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: "Check formatting"
run: cargo +nightly fmt --check --all
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: "Clippy check"
run: cargo clippy --all-features -- -D warnings