Skip to content

feat: support // scopelint: disable-* directive to ignore regions #105

feat: support // scopelint: disable-* directive to ignore regions

feat: support // scopelint: disable-* directive to ignore regions #105

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo --version --verbose
- run: cargo build --release --all-features
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: foundry-rs/foundry-toolchain@v1
- run: cargo test --locked --all-features
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy, rustfmt
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
args: --all --all-features -- -D warnings
token: ${{ secrets.GITHUB_TOKEN }}
- name: cargo doc
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: '-D missing_docs -D rustdoc::missing_doc_code_examples'
with:
command: doc
args: --workspace --all-features --no-deps --document-private-items