Merge pull request #1917 from EspressoSystems/bf/stricter-tests #2918
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: 25 | |
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 | |
- name: Format Check | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: | | |
nix develop -c just async_std lint | |
nix develop -c just tokio lint |