-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: Support new values for task option
runInCI
. (#1754)
* Add new option. * Update tracker. * Add tests. * Polish.
- Loading branch information
Showing
24 changed files
with
328 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
releases: | ||
"@moonrepo/cli": minor | ||
"@moonrepo/core-linux-arm64-gnu": minor | ||
"@moonrepo/core-linux-arm64-musl": minor | ||
"@moonrepo/core-linux-x64-gnu": minor | ||
"@moonrepo/core-linux-x64-musl": minor | ||
"@moonrepo/core-macos-arm64": minor | ||
"@moonrepo/core-macos-x64": minor | ||
"@moonrepo/core-windows-x64-msvc": minor | ||
'@moonrepo/cli': minor | ||
'@moonrepo/core-linux-arm64-gnu': minor | ||
'@moonrepo/core-linux-arm64-musl': minor | ||
'@moonrepo/core-linux-x64-gnu': minor | ||
'@moonrepo/core-linux-x64-musl': minor | ||
'@moonrepo/core-macos-arm64': minor | ||
'@moonrepo/core-macos-x64': minor | ||
'@moonrepo/core-windows-x64-msvc': minor | ||
'@moonrepo/types': minor | ||
|
||
declined: | ||
- '@moonrepo/nx-compat' | ||
- '@moonrepo/report' | ||
- '@moonrepo/runtime' | ||
- website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
tasks: | ||
enabled: | ||
options: | ||
runInCI: true | ||
disabled: | ||
options: | ||
runInCI: false | ||
affected: | ||
options: | ||
runInCI: affected | ||
always: | ||
options: | ||
runInCI: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#[macro_export] | ||
macro_rules! generate_switch { | ||
($name:ident, [ $($value:literal),* ]) => { | ||
impl $name { | ||
pub fn is_enabled(&self) -> bool { | ||
!matches!(self, Self::Enabled(false)) | ||
} | ||
} | ||
|
||
impl From<bool> for $name { | ||
fn from(value: bool) -> Self { | ||
Self::Enabled(value) | ||
} | ||
} | ||
|
||
impl Schematic for $name { | ||
fn build_schema(mut schema: SchemaBuilder) -> Schema { | ||
schema.union(UnionType::new_any([ | ||
schema.infer::<bool>(), | ||
schema.nest().string(StringType { | ||
enum_values: Some(Vec::from_iter([ | ||
$( | ||
$value.into() | ||
),* | ||
])), | ||
..Default::default() | ||
}), | ||
])) | ||
} | ||
} | ||
}; | ||
} |
Oops, something went wrong.