2021-12-28 12:49:33 +03:00
|
|
|
name: "crev: Dependencies"
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-deps:
|
|
|
|
name: Check dependencies
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-05-04 13:04:48 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-12-28 12:49:33 +03:00
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
|
2022-01-07 14:03:03 +03:00
|
|
|
- name: Remove unrelated
|
|
|
|
run: |
|
|
|
|
rm -rf packages
|
|
|
|
rm -rf tests
|
|
|
|
ls -al
|
|
|
|
|
2022-03-15 17:17:03 +03:00
|
|
|
- name: Install cargo-crev
|
|
|
|
uses: baptiste0928/cargo-install@v1.1.0
|
|
|
|
with:
|
|
|
|
crate: cargo-crev
|
|
|
|
version: "0.23.1"
|
|
|
|
|
2021-12-28 12:49:33 +03:00
|
|
|
- name: Configure cargo-crev
|
|
|
|
run: |
|
|
|
|
git config --global user.name 'SWC bot'
|
|
|
|
git config --global user.email 'bot@swc.rs'
|
2022-01-07 14:03:03 +03:00
|
|
|
|
2021-12-28 12:49:33 +03:00
|
|
|
cargo crev trust --level high https://github.com/kdy1/crev-proofs
|
2022-01-07 14:03:03 +03:00
|
|
|
cargo crev repo fetch all
|
2021-12-28 12:49:33 +03:00
|
|
|
|
|
|
|
- name: Check dependencies
|
|
|
|
run: |
|
|
|
|
./scripts/crev/verify.sh
|