summaryrefslogtreecommitdiff
path: root/.woodpecker.yaml
blob: 14d9fd45f2a7dc2194e2bdd3fa877b7eb96777ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Define the sequence of steps for the CI pipeline
steps:
  # Step 1: Run tests and checks (formatting, clippy, build, test)
  fmt:
    image: rust 
    commands:
      - rustup default stable 
      - cargo fmt --all -- --check
    when:
      branch: main
      event: [ push, pull_request ]

  clippy:
    image: rust 
    commands:
      - rustup default stable 
      - cargo clippy --jobs 2 -- -D clippy::all 

    when:
      branch: main
      event: [ push, pull_request ]

  build:
    image: rust 
    commands:
      - rustup default stable 
      - cargo build --release --verbose --jobs 2 
    when:
      branch: main
      event: [ push, pull_request ]

  test:
    image: rust 
    commands:
      - rustup default stable 
      - cargo test --verbose --jobs 2
    when:
      branch: main
      event: [ push, pull_request ]