ci: should deal with nestled folders now?

This commit is contained in:
silver 2023-08-11 08:28:36 +01:00
parent 77ad370bf8
commit 01813be8e1
3 changed files with 22 additions and 14 deletions

View file

@ -25,10 +25,13 @@ lint-clippy:
- rustc --version - rustc --version
- cargo version - cargo version
- cargo clippy - cargo clippy
only: rules:
changes: - if: $CI_COMMIT_TAG
- src/* when: never
- cargo.* - changes:
- src/**/*
- cargo.*
when: always
lint-fmt: lint-fmt:
stage: lint stage: lint
@ -37,10 +40,13 @@ lint-fmt:
- rustc --version - rustc --version
- cargo version - cargo version
- cargo fmt -- --check - cargo fmt -- --check
only: rules:
changes: - if: $CI_COMMIT_TAG
- src/* when: never
- cargo.* - changes:
- src/**/*
- cargo.*
when: always
# has to actually compile # has to actually compile
@ -51,10 +57,13 @@ build:
- cargo version - cargo version
- cargo build --verbose - cargo build --verbose
- RUST_BACKTRACE=1 cargo test --verbose - RUST_BACKTRACE=1 cargo test --verbose
only: rules:
changes: - if: $CI_COMMIT_TAG
- src/* when: never
- cargo.* - changes:
- src/**/*
- cargo.*
when: on_success
# from https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html # from https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html

View file

@ -3,7 +3,6 @@ name = "skynet_ldap_backend"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]] [[bin]]
name = "update_data" name = "update_data"

View file

@ -199,7 +199,7 @@ pub mod password {
// if so then set password // if so then set password
let tmp = PasswordModify { let tmp = PasswordModify {
// none as we are staying on the same connection // none as we are staying on the same connection.
user_id: Some(&dn), user_id: Some(&dn),
old_pass: None, old_pass: None,
new_pass: Some(pass), new_pass: Some(pass),