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
- cargo version
- cargo clippy
only:
changes:
- src/*
- cargo.*
rules:
- if: $CI_COMMIT_TAG
when: never
- changes:
- src/**/*
- cargo.*
when: always
lint-fmt:
stage: lint
@ -37,10 +40,13 @@ lint-fmt:
- rustc --version
- cargo version
- cargo fmt -- --check
only:
changes:
- src/*
- cargo.*
rules:
- if: $CI_COMMIT_TAG
when: never
- changes:
- src/**/*
- cargo.*
when: always
# has to actually compile
@ -51,10 +57,13 @@ build:
- cargo version
- cargo build --verbose
- RUST_BACKTRACE=1 cargo test --verbose
only:
changes:
- src/*
- cargo.*
rules:
- if: $CI_COMMIT_TAG
when: never
- changes:
- src/**/*
- cargo.*
when: on_success
# 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"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "update_data"

View file

@ -199,7 +199,7 @@ pub mod password {
// if so then set password
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),
old_pass: None,
new_pass: Some(pass),