Skip to content

Commit

Permalink
Merge branch 'main' into gabe/xcresult
Browse files Browse the repository at this point in the history
  • Loading branch information
gnalh committed Oct 2, 2024
2 parents 3c08259 + 936e767 commit ba5cf88
Show file tree
Hide file tree
Showing 16 changed files with 2,396 additions and 36 deletions.
50 changes: 48 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["cli", "codeowners", "junit-mock", "xcresult"]
members = ["cli", "codeowners", "junit-mock", "context", "xcresult"]
resolver = "2"

[profile.release]
Expand Down
4 changes: 1 addition & 3 deletions cli/tests/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::path::Path;

use assert_cmd::Command;
use assert_matches::assert_matches;
use clap::Parser;
use junit_mock::JunitMock;
use tempfile::tempdir;
use test_utils::mock_git_repo::setup_repo_with_commit;
Expand All @@ -22,8 +21,7 @@ fn generate_mock_git_repo<T: AsRef<Path>>(directory: T) {
}

fn generate_mock_junit_xmls<T: AsRef<Path>>(directory: T) {
let options = junit_mock::Options::try_parse_from(&[""]).unwrap();
let mut jm = JunitMock::new(options);
let mut jm = JunitMock::new(junit_mock::Options::default());
let reports = jm.generate_reports();
JunitMock::write_reports_to_file(directory.as_ref(), reports).unwrap();
}
Expand Down
16 changes: 16 additions & 0 deletions context/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "context"
version = "0.1.0"
edition = "2021"

[dev-dependencies]
pretty_assertions = "0.6"
junit-mock = { path = "../junit-mock" }

[dependencies]
anyhow = "1.0.44"
chrono = "0.4.33"
quick-junit = "0.5.0"
quick-xml = "0.36.2"
speedate = "0.14.4"
thiserror = "1.0.63"
6 changes: 6 additions & 0 deletions context/src/env/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use std::collections::HashMap;

pub mod parser;
pub mod validator;

pub type EnvVars = HashMap<String, String>;
Loading

0 comments on commit ba5cf88

Please sign in to comment.