Skip to content

.NET wrapper for SDK #1406

.NET wrapper for SDK

.NET wrapper for SDK #1406

Workflow file for this run

name: Lint
on:
workflow_dispatch:
push:
branches: ["master"]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
style:
name: Check Style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install rust
uses: dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
- name: Cargo fmt
run: cargo fmt --check
- name: Set up Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
cache: "npm"
cache-dependency-path: "package-lock.json"
node-version: "16"
- name: NPM setup
run: npm ci
- name: Node Lint
run: npm run lint
- name: Verify rust documentation links
run: cargo doc --no-deps --features internal
env:
RUSTDOCFLAGS: "-D warnings"
- name: Cargo clippy
run: cargo clippy --all-features
env:
RUSTFLAGS: "-D warnings"