diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-12-01 14:06:10 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-12-01 14:06:10 +0300 |
| commit | 068eea55e0612184151461e64633b3dc18e53490 (patch) | |
| tree | d3e20aea860a88e2b50ad3d35ddbd8792a1e531e /.woodpecker.yaml | |
| parent | 2029c2c09284d0228c0bce2977fdfa0ca8a8db06 (diff) | |
Implemented test suite, fixed some issues and added more modular structure into .woodpecker.yaml
Diffstat (limited to '.woodpecker.yaml')
| -rw-r--r-- | .woodpecker.yaml | 52 |
1 files changed, 47 insertions, 5 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 46a5e75..ea55210 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,16 +1,58 @@ # Define the sequence of steps for the CI pipeline steps: - full-test: + dependencies: image: rust - commands: - - apt install openssl -y + environment: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: - rustup default stable - rustup component add clippy rustfmt - - cargo clippy --jobs 2 -- -D clippy::all + - apt install openssl -y + when: + branch: main + event: [ push, pull_request ] + build: + image: rust + environment: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: + - cargo build --verbose --release --jobs 2 + when: + branch: main + event: [ push, pull_request ] + clippy: + image: rust + environment: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: - cargo fmt --all -- --check + - cargo clippy --jobs 2 -- -D clippy::all + when: + branch: main + event: [ push, pull_request ] + + build: + image: rust + environment: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: - cargo build --verbose --release --jobs 2 - - cargo test --verbose --jobs 2 when: branch: main event: [ push, pull_request ] + + tests: + image: rust + environment: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: + - cargo test --verbose --jobs 2 + when: + branch: main + event: [ push, pull_request ]
\ No newline at end of file |
