mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
ci: run style.fish
This allows checking formatting of fish script and Python files, in addition to Rust files. Closes #11923
This commit is contained in:
committed by
Johannes Altmanninger
parent
ff308b36af
commit
4d52245617
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
@@ -6,15 +6,19 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/rust-toolchain@stable
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: cargo fmt
|
||||
run: cargo fmt --check
|
||||
- name: install dependencies
|
||||
run: pip install ruff
|
||||
- name: build fish
|
||||
run: cargo build
|
||||
- name: check format
|
||||
run: PATH="target/debug:$PATH" build_tools/style.fish --all --check
|
||||
|
||||
clippy-stable:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user