Skip to content

Commit e2522a8

Browse files
Add Woodpecker CI pipeline
1 parent 14c55eb commit e2522a8

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.woodpecker.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Woodpecker CI Pipeline for CIGen
2+
3+
when:
4+
- event: [push, pull_request]
5+
branch: main
6+
7+
steps:
8+
install-deps:
9+
image: rust:1.85
10+
commands:
11+
- apt-get update
12+
- apt-get install -y nodejs npm protobuf-compiler
13+
14+
fmt:
15+
image: rust:1.85
16+
commands:
17+
- apt-get update
18+
- apt-get install -y protobuf-compiler
19+
- rustup component add rustfmt
20+
- cargo fmt -- --check
21+
depends_on: [install-deps]
22+
23+
clippy:
24+
image: rust:1.85
25+
commands:
26+
- apt-get update
27+
- apt-get install -y protobuf-compiler
28+
- rustup component add clippy
29+
- cargo clippy --all-targets --all-features -- -D warnings
30+
depends_on: [install-deps]
31+
32+
test:
33+
image: rust:1.85
34+
commands:
35+
- apt-get update
36+
- apt-get install -y protobuf-compiler
37+
- cargo test
38+
depends_on: [install-deps]

0 commit comments

Comments
 (0)