Woodpecker CI: Only run lint and unit tests when relevant files changed
This commit is contained in:
parent
096c4ea980
commit
fd7b809c54
3 changed files with 6 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
|||
when:
|
||||
- event: pull_request
|
||||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
- event: push
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
|
||||
steps:
|
||||
mix-format:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
when:
|
||||
- event: pull_request
|
||||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
- event: push
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
when:
|
||||
- event: pull_request
|
||||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
- event: push
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue