build(woodpecker): restore dropped cargo build

Also merge lint and build steps
This commit is contained in:
Paul Campbell 2024-04-10 07:24:38 +01:00
parent c66170c3b4
commit cd18dbe781

View file

@ -12,7 +12,7 @@ steps:
prefix_regex: "(#|//) (TODO|FIXME): " prefix_regex: "(#|//) (TODO|FIXME): "
debug: false debug: false
lint: lint_and_build:
when: when:
- event: push - event: push
branch: next branch: next
@ -20,17 +20,9 @@ steps:
environment: environment:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
commands: commands:
- ls -l /usr/local/cargo/bin/
- cargo fmt --all -- --check - cargo fmt --all -- --check
- cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used - cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
- cargo build
build:
when:
- event: push
branch: next
image: git.kemitix.net/kemitix/git-next-builder:latest
environment:
CARGO_TERM_COLOR: always
test: test:
when: when: