Skip to content

build: use package attributes from workspace (#488) #497

build: use package attributes from workspace (#488)

build: use package attributes from workspace (#488) #497

Workflow file for this run

name: common
on:
merge_group:
types: [checks_requested]
workflow_call:
pull_request:
push:
branches:
- main
env:
RUSTFLAGS: "-Dwarnings"
jobs:
code-checking:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-code-checking
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt,clippy
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-code-checking-${{ hashFiles('**/Cargo.lock') }}
- name: run lint
run: cargo fmt --all --check
- name: run check
run: cargo check --all-features --tests --workspace
- name: run clippy
run: cargo clippy --all-targets --all-features --tests --workspace