-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/nuget/Delegate.ExpressionEngine…
…-4.1.2
- Loading branch information
Showing
37 changed files
with
704 additions
and
267 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 |
---|---|---|
|
@@ -11,18 +11,22 @@ jobs: | |
runs-on: windows-latest | ||
name: Testing | ||
strategy: | ||
matrix: | ||
dotnet: [ 'net6.0' ] | ||
matrix: | ||
include: | ||
- framework: "net6.0" | ||
version: 6.0.x | ||
- framework: net8.0 | ||
version: 8.0.x | ||
steps: | ||
- name: Checkout code base | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
- uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
dotnet-version: 8.0.x | ||
|
||
- name: Run tests | ||
run: dotnet test --verbosity normal -f ${{ matrix.dotnet }} | ||
run: dotnet test --verbosity normal -f ${{ matrix.framework }} | ||
|
||
|
||
release: | ||
|
@@ -32,16 +36,22 @@ jobs: | |
- test | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Git for Windows' minimal SDK | ||
uses: git-for-windows/setup-git-for-windows-sdk@v1 | ||
|
||
- name: Print GIT verison | ||
run: git --version | ||
|
||
- uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
node-version: 20 | ||
|
||
- name: Add plugin for conventional commits | ||
run: npm install conventional-changelog-conventionalcommits | ||
|
@@ -62,7 +72,7 @@ jobs: | |
- name: Print release verison | ||
run: echo ${env:RELEASE_VERSION} | ||
|
||
- name: Cleaning | ||
run: dotnet clean | ||
|
||
|
@@ -80,4 +90,4 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_AUTHOR_NAME: thygesteffensen;pksorensen | ||
GIT_AUTHOR_EMAIL: [email protected];[email protected] | ||
run: npx semantic-release | ||
run: npx semantic-release |
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,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace WorkflowEngine.Core | ||
{ | ||
public class ActionCompletedEvent : Event | ||
{ | ||
public override EventType EventType => EventType.ActionCompleted; | ||
|
||
[JsonProperty("jobId")] | ||
public string JobId { get; set; } | ||
[JsonProperty("actionKey")] | ||
public string ActionKey { get; set; } | ||
[JsonProperty("resultPath")] | ||
public string ResultPath { get; set; } | ||
|
||
[JsonProperty("status")] | ||
public string Status { get; set; } | ||
|
||
public static ActionCompletedEvent FromAction(IActionResult result,IAction action,string jobId) | ||
{ | ||
|
||
return new ActionCompletedEvent | ||
{ | ||
|
||
JobId = jobId, | ||
ActionKey = action.Key, | ||
Status = result.Status, | ||
}; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.