init-ci (2/2) #14
3 changed files with 23 additions and 1 deletions
20
.woodpecker/cargo-checks.yml
Normal file
20
.woodpecker/cargo-checks.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
when:
|
||||
- event: pull_request
|
||||
- event: push
|
||||
- path:
|
||||
include: ["*.rs"]
|
||||
|
||||
steps:
|
||||
configure_rustup:
|
||||
image: rust
|
||||
commands: |
|
||||
rustup update stable && rustup default stable
|
||||
rustup component add clippy
|
||||
cargo_clippy:
|
||||
image: rust
|
||||
commands:
|
||||
- cargo clippy --all-targets --all-features
|
||||
cargo_test:
|
||||
image: rust
|
||||
commands:
|
||||
- cargo test --all-features
|
|
@ -37,7 +37,7 @@ steps:
|
|||
owner: ${CI_REPO_OWNER}
|
||||
repo: ${CI_REPO_NAME}
|
||||
branch: flake-lock-update
|
||||
base_branch: master
|
||||
base_branch: main
|
||||
pr_title: "flake.lock: update"
|
||||
pr_body: PR automatically created by Woodpecker CI
|
||||
close_pr_if_empty: true
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
in {
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
name = "forcebot_rs-devenv";
|
||||
nativeBuildInputs = [pkgs.pkg-config];
|
||||
buildInputs = with pkgs; [openssl libiconv];
|
||||
packages = with pkgs; [
|
||||
nil
|
||||
alejandra
|
||||
|
|
Loading…
Reference in a new issue