-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow command support for MATLAB Build results (#32)
* Added workflow command support * Added test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated test case in bat.yml * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated as per review coments * updated exec option * updated exec option * updated exec option * updated exec option * updated exec option * updated exec option * updated exec option * Added test to parse log * Added test to parse log * Testing grep * Testing grep * Testing grep * Testing grep * Testing grep * Testing grep * Testing grep * Testing grep * Testing grep * reverted log changes * Added tests using log read * Added tests using log read * Added tests using log read * Added tests using log read * Added tests using log read * Added tests using log read * Added tests using log read * Added tests using log read * Updated review comments * changed copy path * changed copy path * Reverted copy changes * Reverted copy changes * Changed -cp strategy and plugin name * Updated the test case * Updated task name in group display * Changed env variable setting * Changed env variable setting * Changed env variable setting * Changed env variable setting * Changed env variable setting * Changed env variable setting * Refactored test variables
- Loading branch information
Showing
7 changed files
with
73 additions
and
13 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
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,22 @@ | ||
classdef GitHubLogPlugin < matlab.buildtool.plugins.BuildRunnerPlugin | ||
|
||
% Copyright 2024 The MathWorks, Inc. | ||
|
||
methods (Access=protected) | ||
|
||
function runTask(plugin, pluginData) | ||
% Add Github workflow command for grouping the tasks | ||
disp("::group::" + pluginData.TaskResults.Name); | ||
|
||
[email protected](plugin, pluginData); | ||
|
||
% Add Github workflow command ::error:: if the task is failed | ||
if pluginData.TaskResults.Failed | ||
disp("::error::" + pluginData.TaskResults.Name + " task failed"); | ||
end | ||
|
||
% Complete the group command | ||
disp("::endgroup::"); | ||
end | ||
end | ||
end |
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 @@ | ||
function plugins = getDefaultPlugins(pluginProviderData) | ||
|
||
% Copyright 2024 The MathWorks, Inc. | ||
|
||
arguments | ||
pluginProviderData (1,1) struct = struct(); | ||
end | ||
|
||
plugins = [ ... | ||
matlab.buildtool.internal.getFactoryDefaultPlugins(pluginProviderData) ... | ||
ciplugins.github.GitHubLogPlugin() ... | ||
]; | ||
end |
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