sanity #4
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: | |
workflow_dispatch: {} | |
# Once per day at 00:00 UTC | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
RUSTFLAGS: -D warnings | |
CARGO_TERM_COLOR: always | |
GETH_BUILD: 1.13.4-3f907d6a | |
name: sanity | |
jobs: | |
unused-deps: | |
runs-on: ubuntu-latest | |
name: unused dependencies | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Install cargo-udeps | |
run: cargo install cargo-udeps --locked | |
- name: Check for unused dependencies | |
run: cargo +nightly udeps --all-features --all-targets | |
- uses: JasonEtco/create-an-issue@v2 | |
if: ${{ failure() }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
with: | |
update_existing: true | |
filename: .github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md | |