add clap version #701
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
paths: | |
- crates/** | |
- .github/workflows/lint-and-test-cli.yml | |
name: Lint and Test crates | |
jobs: | |
clippy_check_cli: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-hub/docker/cli@f5fdbfc3f9d2a9265ead8962c1314108a7b7ec5d | |
env: | |
SKIP_LOGIN: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Compile project | |
run: cargo build | |
- name: Prepare pcr-sign package for integration testing | |
run: | | |
cd crates/pcr-sign | |
sh ./scripts/generate-test-signature.sh | |
- name: Test project | |
run: cargo test -p ev-cli -p ev-enclave | |
- name: Format project | |
run: cargo fmt --check | |
- name: Lint project | |
run: cargo clippy |