Skip to content

Commit

Permalink
tests concurrency cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 30, 2023
1 parent f92b359 commit 4680a8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-rust:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
Expand Down
2 changes: 1 addition & 1 deletion bindings/updater/nodejs/__test__/index.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test("it updates correctly", async (t) => {
privateKey: UPDATER_PRIVATE_KEY,
password: "",
},
{ verbosity: 0 },
{ verbosity: 2 },
);
} catch (e) {
console.error("failed to package app");
Expand Down
1 change: 0 additions & 1 deletion crates/updater/tests/app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ fn main() {

match updater.check() {
Ok(Some(update)) => {
println!("update format: {}", update.format);
if let Err(e) = update.download_and_install(|_, _| {}, || {}) {
println!("{e}");
std::process::exit(1);
Expand Down
1 change: 1 addition & 0 deletions crates/updater/tests/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fn build_app(cwd: &Path, root_dir: &Path, version: &str, target: &[UpdaterFormat
"--package",
"cargo-packager",
"--",
"-vvv",
"-f",
&target.iter().map(|t|t.name()).collect::<Vec<_>>().join(","),
"-c",
Expand Down

0 comments on commit 4680a8a

Please sign in to comment.