Skip to content

Scaffold exporters (#216) #1189

Scaffold exporters (#216)

Scaffold exporters (#216) #1189

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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Install rust
uses: dtolnay/rust-toolchain@f361669954a8ecfc00a3443f35f9ac8e610ffc06 # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2.6.2
- 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"