1.2: Sandboxing #7
+16
-2
@@ -3,13 +3,27 @@ when:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fmt
|
||||||
|
image: rust:1.97
|
||||||
|
commands:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt --all -- --check
|
||||||
|
|
||||||
- name: clippy
|
- name: clippy
|
||||||
image: rust:1.97
|
image: rust:1.97
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy
|
- cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1.97
|
image: rust:1.97
|
||||||
commands:
|
commands:
|
||||||
- cargo test
|
- cargo test --workspace --all-targets
|
||||||
|
|
||||||
|
- name: container-build
|
||||||
|
image: quay.io/buildah/stable
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /data/woodpecker-builds:/data
|
||||||
|
commands:
|
||||||
|
- buildah bud -f Containerfile -t herald-ci .
|
||||||
|
|||||||
Reference in New Issue
Block a user