Skip to content

CI: run cargo-sort and move formatting related jobs in their configuration #2

CI: run cargo-sort and move formatting related jobs in their configuration

CI: run cargo-sort and move formatting related jobs in their configuration #2

Workflow file for this run

name: Global configuration for formatting related jobs
on:
workflow_dispatch:
pull_request:
push:
jobs:
run_rust_formatting:
name: Formatting Rust related code
runs-on: ubuntu-latest
strategy:
matrix:
rust_toolchain_version: ["nightly"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Use shared Rust toolchain setting up steps
uses: ./.github/actions/toolchain-shared
with:
rust_toolchain_version: ${{ matrix.rust_toolchain_version }}
- name: Run cargo fmt
run: |
make format
- name: Install cargo-sort
run: cargo install cargo-sort
- name: Check Cargo.toml Sorting
run: cargo sort --check