fix: add timeouts to ci tests (#687) #40
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
name: lint | |
on: | |
push: | |
branches: [develop, main] | |
pull_request: | |
branches: | |
- "**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
BINSTALL_NO_CONFIRM: true | |
RUSTDOCFLAGS: "-D warnings" | |
jobs: | |
clippy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/rust | |
- run: cargo clippy --all-targets -- -D warnings | |
- run: cargo clippy --all-targets --no-default-features --features cdk_erigon -- -D warnings | |
udeps: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/rust | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-udeps | |
- run: cargo udeps --quiet | |
- run: cargo udeps --quiet --tests --benches --examples | |
rustdoc: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/rust | |
- run: cargo doc --all --no-deps | |
cargo-fmt: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/rust | |
- run: cargo fmt --check | |
taplo-fmt: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/rust | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: taplo-cli | |
- run: taplo fmt --check |