git-next/.woodpecker/push-next.yml
Paul Campbell ca30d1bd11 build(woodpecker): merge and rename jobs
build(woodpecker): only run checks against next branch

Merges todo-check into main job.
Rename file build as push-next
Run lint ahead of build

build(woodpecker): rename builder as cron-docker-builder

build(woodpecker): merge release and docker into tag-created
2024-04-10 07:13:11 +01:00

43 lines
1.1 KiB
YAML

steps:
todo_check:
# INFO: https://woodpecker-ci.org/plugins/TODO-Checker
image: codeberg.org/epsilon_02/todo-checker:1.1
when:
- event: push
branch: next
settings:
# git-next-woodpecker-todo-checker - read:issue
repository_token: '776a3b928b852472c2af727a360c85c00af64b9f'
prefix_regex: "(#|//) (TODO|FIXME): "
debug: false
lint:
when:
- event: push
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
commands:
- ls -l /usr/local/cargo/bin/
- cargo fmt --all -- --check
- cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
build:
when:
- event: push
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
test:
when:
- event: push
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
commands:
- cargo test