Skip to content

Create dependencies.yml #5040

Create dependencies.yml

Create dependencies.yml #5040

Workflow file for this run

on: [push, pull_request, workflow_dispatch]
name: Aderyn
concurrency:
group: ci-${{ github.ref }}-cargo
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install git submodules
run: |
git submodule update --init --recursive
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Install Foundry Toolchain
uses: foundry-rs/[email protected]
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Rust Nightly (2025-01-01)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2025-01-01
override: true
- name: Checkout Submodules
run: git submodule update --init --recursive
- name: Checkout Sources
uses: actions/checkout@v4
- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run tests
run: |
cargo build
cargo test -- --nocapture
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
override: true
- name: Run cargo fmt
run: |
cargo +nightly fmt --all --check
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings