Merge pull request 'init-ci (2/2)' (#14) from init-cli-p2 into main
Reviewed-on: #14
This commit is contained in:
commit
1c24f7eec3
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}
|
owner: ${CI_REPO_OWNER}
|
||||||
repo: ${CI_REPO_NAME}
|
repo: ${CI_REPO_NAME}
|
||||||
branch: flake-lock-update
|
branch: flake-lock-update
|
||||||
base_branch: master
|
base_branch: main
|
||||||
pr_title: "flake.lock: update"
|
pr_title: "flake.lock: update"
|
||||||
pr_body: PR automatically created by Woodpecker CI
|
pr_body: PR automatically created by Woodpecker CI
|
||||||
close_pr_if_empty: true
|
close_pr_if_empty: true
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
in {
|
in {
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
name = "forcebot_rs-devenv";
|
name = "forcebot_rs-devenv";
|
||||||
|
nativeBuildInputs = [pkgs.pkg-config];
|
||||||
|
buildInputs = with pkgs; [openssl libiconv];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nil
|
nil
|
||||||
alejandra
|
alejandra
|
||||||
|
|
Loading…
Reference in a new issue