Skip to content

Commit

Permalink
Merge pull request #10 from delegateas/dev
Browse files Browse the repository at this point in the history
Releasing Next Version?
  • Loading branch information
pksorensen authored Nov 21, 2022
2 parents 880489f + dae958e commit 49b3329
Show file tree
Hide file tree
Showing 49 changed files with 1,641 additions and 166 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Basic dependabot.yml file with

version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 2
allow:
- dependency-name: "Delegate.ExpressionEngine"
3 changes: 0 additions & 3 deletions .github/workflows/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ plugins:
- path: ../../artifacts/WorkflowEngine.*.nupkg
label: Delegate.Workflow package

- - "@semantic-release/exec"
- publishCmd: "dotnet nuget push ..\\..\\artifacts\\Delegate.WorkflowEngine.*.nupkg --source https://nuget.pkg.github.com/delegateas/index.json --api-key ${process.env.GITHUB_TOKEN}"

- - "@semantic-release/exec"
- publishCmd: "dotnet nuget push ..\\..\\artifacts\\Delegate.WorkflowEngine.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${process.env.CI_NUGET_API_KEY}"
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ jobs:
name: Testing
strategy:
matrix:
dotnet: [ 'netcoreapp3.1' ]
dotnet: [ 'net6.0' ]
steps:
- name: Checkout code base
uses: actions/checkout@v2


- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Run tests
run: dotnet test --verbosity normal -f ${{ matrix.dotnet }}

Expand All @@ -26,14 +30,14 @@ jobs:
name: Building
strategy:
matrix:
dotnet: ['netcoreapp3.1']
dotnet: ['net6.0']
steps:
- name: Checkout code base
uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
dotnet-version: '6.0.x'

- name: Cleaning
run: dotnet clean
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2


- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ jobs:
name: Testing
strategy:
matrix:
dotnet: [ 'netcoreapp3.1' ]
dotnet: [ 'net6.0' ]
steps:
- name: Checkout code base
uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Run tests
run: dotnet test --verbosity normal -f ${{ matrix.dotnet }}

Expand All @@ -29,6 +33,10 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Setup Node.js
uses: actions/setup-node@v1
Expand All @@ -46,8 +54,8 @@ jobs:
- name: Dry Run Semantic to get next Version nummber
working-directory: ./.github/workflows
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_NAME: thygesteffensen
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: thygesteffensen;pksorensen
GIT_AUTHOR_EMAIL: [email protected]
run: |
echo "RELEASE_VERSION=$((npx semantic-release --dry-run).Where({ $_ -like '*Release note*' }) | Out-String | Select-String '[0-9]+\.[0-9]+\.[0-9]+([-][a-zA-z]+[.][0-9]*)?' | % { $_.Matches } | % { $_.Value })" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Expand All @@ -69,7 +77,7 @@ jobs:
working-directory: .\\.github\\workflows
env:
CI_NUGET_API_KEY: ${{ secrets.NUGETAPIKEY }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_NAME: thygesteffensen
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: thygesteffensen;pksorensen
GIT_AUTHOR_EMAIL: [email protected];[email protected]
run: npx semantic-release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
.vs
bin
obj
/src/WorkflowEngine.Core/test1.txt
/src/WorkflowEngine.Hangfire/test1.txt
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# Workflow Engine on top of Hangfire


```
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Bigs3cRet!' -e 'MSSQL_PID=Express' -p 8181:1433 --name hangfiredemo -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu
docker exec -it hangfiredemo /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Bigs3cRet! -Q "CREATE DATABASE hangfiredemo"
Expand Down Expand Up @@ -129,4 +130,6 @@ Service Registration
}
}
});
```
```

### TODO Show Loop example
10 changes: 10 additions & 0 deletions WorkflowEngine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WorkflowEngine.Hangfire", "src\WorkflowEngine.Hangfire\WorkflowEngine.Hangfire.csproj", "{7A50D90B-98AE-4B7F-9B39-8828D9ACED5B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NewFolder1", "NewFolder1", "{144FC2ED-C165-401D-BDD8-9431B447C96C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{76AE8C20-E425-4B07-BFAA-536CCF9ED4EB}"
ProjectSection(SolutionItems) = preProject
.github\dependabot.yml = .github\dependabot.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -42,6 +49,9 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{144FC2ED-C165-401D-BDD8-9431B447C96C} = {0749C5E8-52D4-4B3A-89EA-891DD156A056}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {56ADE641-E5CE-4AED-AB11-4D507F8C0816}
EndGlobalSection
Expand Down
Loading

0 comments on commit 49b3329

Please sign in to comment.