Skip to content

Allow multiple public methods in scripts as long as there is at least one run method #109

Allow multiple public methods in scripts as long as there is at least one run method

Allow multiple public methods in scripts as long as there is at least one run method #109

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