mirror of https://codeberg.org/topola/topola.git
ci: only run CI when relevant files changed
This commit is contained in:
parent
cee521be5b
commit
bd698027be
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue