Skip to content

Commit 282953c

Browse files
authored
Feat/update (#54)
1 parent 211e274 commit 282953c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+852
-649
lines changed

.config/dotnet-tools.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"gitversion.tool": {
6+
"version": "6.0.0",
7+
"commands": [
8+
"dotnet-gitversion"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,6 @@ dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case
305305
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = warning
306306
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types
307307
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i
308+
309+
# Default severity for analyzer diagnostics with category 'StyleCop.CSharp.SpacingRules'
310+
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.SpacingRules.severity = none

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DOCKER_REGISTRY=
1+
DOCKER_REGISTRY=kdcllc

.github/workflows/manual.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: manual
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- feat/*
8+
- feature/*
9+
- release/*
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install GitVersion
23+
uses: gittools/actions/gitversion/setup@v3.0.0
24+
with:
25+
versionSpec: '6.x'
26+
27+
- name: Determine Version
28+
id: version # step id used as reference for output values
29+
uses: gittools/actions/gitversion/execute@v3.0.0
30+
31+
- name: Print GitVersion_FullSemVer
32+
run: echo "The GitVersion_FullSemVer is ${{ env.GitVersion_FullSemVer }}"
33+
34+
- name: Print GitVersion_SemVer
35+
run: echo "The GitVersion_SemVer is ${{ env.GitVersion_SemVer }}"
36+
37+
- name: Setup .NET SDK
38+
uses: actions/setup-dotnet@v1
39+
with:
40+
dotnet-version: '8.0.x'
41+
42+
- name: Install dependencies
43+
run: dotnet restore CronScheduler.sln
44+
45+
- name: Build
46+
run: dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_FullSemVer }}
47+
48+
- name: Test
49+
run: dotnet test
50+
51+
- name: Publish NuGet package
52+
run: |
53+
dotnet pack CronScheduler.sln --configuration Release --no-build /p:PackageVersion=${{ env.GitVersion_FullSemVer }} /p:Version=${{ env.GitVersion_FullSemVer }}
54+
dotnet nuget push **/*.nupkg --source https://f.feedz.io/kdcllc/cronscheduler-aspnetcore/nuget/index.json --api-key ${{ secrets.FEEDZ_API_KEY }} --skip-duplicate

.github/workflows/master.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Install GitVersion
18+
uses: gittools/actions/gitversion/setup@v3.0.0
19+
with:
20+
versionSpec: '6.x'
21+
22+
- name: Determine Version
23+
id: version # step id used as reference for output values
24+
uses: gittools/actions/gitversion/execute@v3.0.0
25+
26+
- name: Print GitVersion_SemVer
27+
run: echo "The GitVersion_SemVer is ${{ env.GitVersion_SemVer }}"
28+
- name: Setup .NET SDK
29+
uses: actions/setup-dotnet@v1
30+
with:
31+
dotnet-version: '8.0.x'
32+
33+
- name: Install dependencies
34+
run: dotnet restore CronScheduler.sln
35+
36+
- name: Build
37+
run: dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_SemVer }}
38+
39+
- name: Test
40+
run: dotnet test
41+
42+
- name: Publish NuGet package
43+
run: |
44+
dotnet pack src/YourProject/YourProject.csproj --configuration Release --output ./nupkg /p:Version=${{ env.GitVersion_SemVer }} /p:Version=${{ env.GitVersion_SemVer }}
45+
dotnet nuget push ./nupkg/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

66
*.db
7+
app.db
78

89
# User-specific files
910
*.suo
@@ -330,3 +331,6 @@ ASALocalRun/
330331

331332
# MFractors (Xamarin productivity tool) working folder
332333
.mfractor/
334+
src/CronSchedulerApp/app.db-shm
335+
src/CronSchedulerApp/app.db-wal
336+
.aider*

.vscode/launch.json

+13-6
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,28 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Worker Debug",
9+
"type": "dotnet",
10+
"request": "launch",
11+
"projectPath": "${workspaceFolder}/src/CronSchedulerWorker/CronSchedulerWorker.csproj"
12+
},
713
{
814
"name": ".NET Core Launch Web",
915
"type": "coreclr",
1016
"request": "launch",
1117
"preLaunchTask": "build",
12-
"program": "${workspaceFolder}/src/CronSchedulerApp/bin/Debug/netcoreapp3.0/CronSchedulerApp.dll",
18+
"program": "${workspaceFolder}/src/CronSchedulerApp/bin/Debug/net8.0/CronSchedulerApp.dll",
1319
"args": [],
14-
"cwd": "${workspaceFolder}/src/",
20+
"cwd": "${workspaceFolder}/src/CronSchedulerApp/",
1521
"console": "internalConsole",
1622
"stopAtEntry": false,
23+
"justMyCode": true,
1724

18-
// "env": {
19-
// "ASPNETCORE_ENVIRONMENT": "Development",
20-
// "ASPNETCORE_URLS": "https://localhost:50001"
21-
// },
25+
"env": {
26+
"ASPNETCORE_ENVIRONMENT": "Development",
27+
"ASPNETCORE_URLS": "https://localhost:51440"
28+
},
2229

2330
"sourceFileMap": {
2431
"/Views": "${workspaceFolder}/Views"

.vscode/settings.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"dotnet-test-explorer.testProjectPath" : "test/**/*.csproj",
3-
42
"files.associations": {
53
"Dockerfile*": "dockerfile"
64
}

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Change Log
33
===============================================================================
44

5+
Version 3.2.0 (07/26/2024)
6+
7+
- removed obsolete methods
8+
- fixed RunStartupJobsAsync
9+
510
Version 3.1.0 (6/12/2022)
611

712
* `SchedulerBuilder.UnobservedTaskExceptionHandler` marked as `Obsolete`;

CronScheduler.sln

-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8C00CEBF
1313
EndProject
1414
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CronSchedulerApp", "src\CronSchedulerApp\CronSchedulerApp.csproj", "{71B7EDED-F26D-4545-9E9B-1F6500AA589C}"
1515
EndProject
16-
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{CFB990F3-58B7-4C9A-AF62-CC13454162B2}"
17-
EndProject
1816
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solutions Items", "Solutions Items", "{998E5783-A784-44C5-88BF-06884943BD6C}"
1917
ProjectSection(SolutionItems) = preProject
2018
.dockerignore = .dockerignore
2119
.editorconfig = .editorconfig
2220
.env = .env
2321
.gitignore = .gitignore
24-
appveyor.yml = appveyor.yml
2522
CHANGELOG.md = CHANGELOG.md
2623
clean.sh = clean.sh
2724
Directory.Build.props = Directory.Build.props

GitVersion.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
mode: ContinuousDelivery
2+
branches:
3+
main:
4+
regex: ^main$
5+
label: ''
6+
increment: Patch
7+
is-release-branch: true
8+
feature:
9+
regex: ^(feature|feat)[/-]
10+
label: alpha
11+
increment: Minor
12+
bugfix:
13+
regex: ^bugfix[/-]
14+
label: alpha
15+
increment: Patch
16+
chore:
17+
regex: ^chore[/-]
18+
label: beta
19+
increment: None
20+
pull-request:
21+
regex: ^(pull|pr)[/-]
22+
label: alpha
23+
increment: Inherit
24+
commit-message-incrementing: Enabled
25+
major-version-bump-message: '\\+semver:\\s?(breaking|major)'

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2022 King David Consulting LLC
3+
Copyright (c) King David Consulting LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)