Skip to content

build: Bump polars from c4ac859 to d3e320e #24

build: Bump polars from c4ac859 to d3e320e

build: Bump polars from c4ac859 to d3e320e #24

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup component add clippy
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'main' }}
- name: Run cargo clippy with all features enabled
run: cargo clippy --all-targets --all-features -- -D warnings
rustfmt:
if: github.ref_name != 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup component add rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check
dprint:
if: github.ref_name != 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Markdown and TOML
uses: dprint/[email protected]