ci: only run CI when relevant files changed

This commit is contained in:
Ellen Emilia Anna Zscheile 2025-01-09 15:12:59 +01:00
parent cee521be5b
commit bd698027be
4 changed files with 77 additions and 0 deletions

View File

@ -20,6 +20,21 @@ steps:
- cargo build -p topola-cli --no-default-features --features "$FEATURES" --
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
# Testing is a step instead of a separate flow to reduce Codeberg's CI usage.
test:
@ -31,3 +46,20 @@ steps:
# Only run tests for stable channel to avoid straining Codeberg's CI.
- test "$CHANNEL" = "stable"
- cargo test --verbose --no-default-features --features "$FEATURES"
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

View File

@ -20,3 +20,18 @@ steps:
- cargo build -p topola-egui --no-default-features --features "$FEATURES"
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

View File

@ -24,3 +24,18 @@ steps:
- trunk build
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

View File

@ -13,3 +13,18 @@ steps:
- 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