Ed/timeout #2820
Workflow file for this run
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: Lints Workflow | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
- '*/*' | |
workflow_dispatch: | |
jobs: | |
lints: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: styfle/[email protected] | |
name: Cancel Outdated Builds | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- name: Install Nix | |
uses: cachix/install-nix-action@v23 | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- uses: Swatinem/rust-cache@v2 | |
name: Enable Rust Caching | |
with: | |
shared-key: "" | |
prefix-key: lint | |
- name: Format Check | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: | | |
nix develop -c just async_std lint | |
nix develop -c just tokio lint |