Skip to content

Commit

Permalink
Feat/update (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdcllc authored Jul 27, 2024
1 parent 211e274 commit 282953c
Show file tree
Hide file tree
Showing 51 changed files with 852 additions and 649 deletions.
13 changes: 13 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"gitversion.tool": {
"version": "6.0.0",
"commands": [
"dotnet-gitversion"
],
"rollForward": false
}
}
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,6 @@ dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = warning
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i

# Default severity for analyzer diagnostics with category 'StyleCop.CSharp.SpacingRules'
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.SpacingRules.severity = none
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DOCKER_REGISTRY=
DOCKER_REGISTRY=kdcllc
54 changes: 54 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: manual

on:
pull_request:
branches:
- master
- feat/*
- feature/*
- release/*
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'

- name: Determine Version
id: version # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]

- name: Print GitVersion_FullSemVer
run: echo "The GitVersion_FullSemVer is ${{ env.GitVersion_FullSemVer }}"

- name: Print GitVersion_SemVer
run: echo "The GitVersion_SemVer is ${{ env.GitVersion_SemVer }}"

- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'

- name: Install dependencies
run: dotnet restore CronScheduler.sln

- name: Build
run: dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_FullSemVer }}

- name: Test
run: dotnet test

- name: Publish NuGet package
run: |
dotnet pack CronScheduler.sln --configuration Release --no-build /p:PackageVersion=${{ env.GitVersion_FullSemVer }} /p:Version=${{ env.GitVersion_FullSemVer }}
dotnet nuget push **/*.nupkg --source https://f.feedz.io/kdcllc/cronscheduler-aspnetcore/nuget/index.json --api-key ${{ secrets.FEEDZ_API_KEY }} --skip-duplicate
45 changes: 45 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: master

on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'

- name: Determine Version
id: version # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]

- name: Print GitVersion_SemVer
run: echo "The GitVersion_SemVer is ${{ env.GitVersion_SemVer }}"
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'

- name: Install dependencies
run: dotnet restore CronScheduler.sln

- name: Build
run: dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_SemVer }}

- name: Test
run: dotnet test

- name: Publish NuGet package
run: |
dotnet pack src/YourProject/YourProject.csproj --configuration Release --output ./nupkg /p:Version=${{ env.GitVersion_SemVer }} /p:Version=${{ env.GitVersion_SemVer }}
dotnet nuget push ./nupkg/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

*.db
app.db

# User-specific files
*.suo
Expand Down Expand Up @@ -330,3 +331,6 @@ ASALocalRun/

# MFractors (Xamarin productivity tool) working folder
.mfractor/
src/CronSchedulerApp/app.db-shm
src/CronSchedulerApp/app.db-wal
.aider*
19 changes: 13 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,28 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Worker Debug",
"type": "dotnet",
"request": "launch",
"projectPath": "${workspaceFolder}/src/CronSchedulerWorker/CronSchedulerWorker.csproj"
},
{
"name": ".NET Core Launch Web",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/CronSchedulerApp/bin/Debug/netcoreapp3.0/CronSchedulerApp.dll",
"program": "${workspaceFolder}/src/CronSchedulerApp/bin/Debug/net8.0/CronSchedulerApp.dll",
"args": [],
"cwd": "${workspaceFolder}/src/",
"cwd": "${workspaceFolder}/src/CronSchedulerApp/",
"console": "internalConsole",
"stopAtEntry": false,
"justMyCode": true,

// "env": {
// "ASPNETCORE_ENVIRONMENT": "Development",
// "ASPNETCORE_URLS": "https://localhost:50001"
// },
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:51440"
},

"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
Expand Down
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"dotnet-test-explorer.testProjectPath" : "test/**/*.csproj",

"files.associations": {
"Dockerfile*": "dockerfile"
}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Change Log
===============================================================================

Version 3.2.0 (07/26/2024)

- removed obsolete methods
- fixed RunStartupJobsAsync

Version 3.1.0 (6/12/2022)

* `SchedulerBuilder.UnobservedTaskExceptionHandler` marked as `Obsolete`;
Expand Down
3 changes: 0 additions & 3 deletions CronScheduler.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8C00CEBF
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CronSchedulerApp", "src\CronSchedulerApp\CronSchedulerApp.csproj", "{71B7EDED-F26D-4545-9E9B-1F6500AA589C}"
EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{CFB990F3-58B7-4C9A-AF62-CC13454162B2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solutions Items", "Solutions Items", "{998E5783-A784-44C5-88BF-06884943BD6C}"
ProjectSection(SolutionItems) = preProject
.dockerignore = .dockerignore
.editorconfig = .editorconfig
.env = .env
.gitignore = .gitignore
appveyor.yml = appveyor.yml
CHANGELOG.md = CHANGELOG.md
clean.sh = clean.sh
Directory.Build.props = Directory.Build.props
Expand Down
25 changes: 25 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
mode: ContinuousDelivery
branches:
main:
regex: ^main$
label: ''
increment: Patch
is-release-branch: true
feature:
regex: ^(feature|feat)[/-]
label: alpha
increment: Minor
bugfix:
regex: ^bugfix[/-]
label: alpha
increment: Patch
chore:
regex: ^chore[/-]
label: beta
increment: None
pull-request:
regex: ^(pull|pr)[/-]
label: alpha
increment: Inherit
commit-message-incrementing: Enabled
major-version-bump-message: '\\+semver:\\s?(breaking|major)'
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2022 King David Consulting LLC
Copyright (c) King David Consulting LLC

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

0 comments on commit 282953c

Please sign in to comment.