Skip to content

Ed/timeout

Ed/timeout #2820

Workflow file for this run

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