Randomize transactions #2628
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: Lint | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'main' | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.run_number) || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clippy: | |
strategy: | |
matrix: | |
just_variants: | |
- async-std | |
- tokio | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- name: Install Rust | |
uses: mkroening/rust-toolchain-toml@main | |
- uses: Swatinem/rust-cache@v2 | |
name: Enable Rust Caching | |
with: | |
shared-key: "lint" | |
prefix-key: ${{ matrix.just_variants }} | |
save-if: ${{ github.ref == 'refs/heads/main' }} | |
- name: Install Just | |
run: | | |
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz | |
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just | |
sudo cp just /usr/bin/just | |
- name: Run clippy | |
run: | | |
just ${{ matrix.just_variants }} clippy | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- name: Install Rust | |
uses: mkroening/rust-toolchain-toml@main | |
- name: Check rustfmt | |
run: cargo fmt --check |