Skip to content

Commit

Permalink
chore(ci): fix invalid Behavior Test Integration Cloud Filter trigger (
Browse files Browse the repository at this point in the history
…#5414)

* chore(ci): fix invalid Behavior Test Integration Cloud Filter trigger

Signed-off-by: Manjusaka <[email protected]>

* Update CI test

Signed-off-by: Manjusaka <[email protected]>

---------

Signed-off-by: Manjusaka <[email protected]>
  • Loading branch information
Zheaoli authored Dec 15, 2024
1 parent 2ec0aff commit 9b64d96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test_behavior_integration_cloud_filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ name: Behavior Test Integration Cloud Filter

on:
push:
paths:
- "integrations/cloudfilter/**.rs"
- "integrations/cloudfilter/Cargo.toml"
- ".github/workflows/test_behavior_integration_cloud_filter.yml"
branches:
- main
pull_request:
branches:
- main
paths:
- "integrations/cloudfilter/**.rs"
- "integrations/cloudfilter/Cargo.toml"
- "integrations/cloud_filter/**.rs"
- "integrations/cloud_filter/Cargo.toml"
- ".github/workflows/test_behavior_integration_cloud_filter.yml"

jobs:
Expand Down
3 changes: 1 addition & 2 deletions integrations/cloud_filter/tests/behavior/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ pub fn file_content(path: impl Display) -> anyhow::Result<String> {
let content = powershell_script::run(&format!("Get-Content \"{path}\""))
.context("run powershell")?
.stdout()
.unwrap_or_default()
.replace("\r\n", "\n"); // powershell returns CRLF, but the fixtures use LF
.unwrap_or_default();
Ok(content)
}

Expand Down

0 comments on commit 9b64d96

Please sign in to comment.