Skip to content

Merge pull request #24 from axiom-crypto/release/2.0.0 #2

Merge pull request #24 from axiom-crypto/release/2.0.0

Merge pull request #24 from axiom-crypto/release/2.0.0 #2

Workflow file for this run

name: Lints
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]
jobs:
lint:
name: Lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: false
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: Run fmt
run: |
export AXIOM_SKIP_CONSTANT_GEN=1
cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all -- -D warnings