Woodpecker CI: Only run lint and unit tests when relevant files changed

This commit is contained in:
Phantasm 2026-02-16 18:12:38 +01:00 committed by Phantasm
commit fd7b809c54
3 changed files with 6 additions and 0 deletions

View file

@ -1,7 +1,9 @@
when: when:
- event: pull_request - event: pull_request
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
steps: steps:
mix-format: mix-format:

View file

@ -1,7 +1,9 @@
when: when:
- event: pull_request - event: pull_request
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
depends_on: depends_on:
- lint - lint

View file

@ -1,7 +1,9 @@
when: when:
- event: pull_request - event: pull_request
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
depends_on: depends_on:
- lint - lint