mirror of https://codeberg.org/topola/topola.git
31 lines
679 B
YAML
31 lines
679 B
YAML
# SPDX-FileCopyrightText: 2024 Topola contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
steps:
|
|
check_formatting:
|
|
image: rust
|
|
environment:
|
|
RUST_BACKTRACE: 1
|
|
CARGO_TERM_COLOR: always
|
|
commands:
|
|
- rustup component add rustfmt
|
|
- cargo fmt --all -- --check
|
|
when:
|
|
event: [pull_request, push, tag]
|
|
path:
|
|
include:
|
|
- '.woodpecker/*.yaml'
|
|
- '*.toml'
|
|
- 'crates/**'
|
|
- 'src/**'
|
|
- 'tests/**'
|
|
- 'examples/**'
|
|
exclude:
|
|
- 'assets/**'
|
|
- 'LICENSES/**'
|
|
- 'locales/**'
|
|
- '*.md'
|
|
ignore_message: '[ALL]'
|
|
on_empty: false
|