mirror of
https://github.com/eth-act/ere.git
synced 2026-04-03 03:00:17 -04:00
40 lines
848 B
YAML
40 lines
848 B
YAML
name: Test and clippy common crates
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
name: Test and clippy crate ${{ matrix.crate }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
crate:
|
|
- build-utils
|
|
- test-utils
|
|
- zkvm-interface
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy
|
|
|
|
- name: Cache dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Run cargo clippy
|
|
run: cargo clippy --all-targets --package ${{ matrix.crate }} -- -D warnings
|
|
|
|
- name: Run cargo test
|
|
run: cargo test --release --package ${{ matrix.crate }}
|