Files
kumomta/.github/workflows/fmt.yml
T
dependabot[bot] 41a96bcb0f build(deps): bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-07 14:55:30 +00:00

49 lines
1.1 KiB
YAML

name: Check code formatting
on:
push:
branches: [ "main" ]
paths:
- "**/*.rs"
- "**/*.lua"
- ".github/workflows/fmt.yml"
- "**/Cargo.toml"
- "stylua.toml"
- ".rustfmt.toml"
pull_request:
branches: [ "main" ]
paths:
- "**/*.rs"
- "**/*.lua"
- ".github/workflows/fmt.yml"
- "**/Cargo.toml"
- "stylua.toml"
- ".rustfmt.toml"
env:
CARGO_TERM_COLOR: always
jobs:
check-code-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Rust formatting
run: cargo +nightly fmt --all -- --check
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install stylua
uses: baptiste0928/cargo-install@v3
with:
crate: stylua
features: lua54
- name: Lua formatting
run: stylua --check --config-path stylua.toml .