Skip to content

Commit

Permalink
Merge branch 'v3' into refactor-integration-tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Skender <[email protected]>
  • Loading branch information
DaveSkender authored Oct 28, 2024
2 parents bf62e6e + 0605107 commit d4f54ff
Show file tree
Hide file tree
Showing 816 changed files with 22,362 additions and 21,531 deletions.
16 changes: 1 addition & 15 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,9 @@ max_line_length = 150
trim_trailing_whitespace = true
insert_final_newline = true

[*.{csproj,props,targets}]
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2

[*.{cs,vb}]
tab_width = 4
indent_size = 4
end_of_line = lf

#### Naming styles ####

Expand Down Expand Up @@ -70,11 +61,6 @@ dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_code_quality_unused_parameters = all:suggestion

dotnet_sort_system_directives_first = true
Expand All @@ -87,7 +73,7 @@ dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_collection_expression = true:suggestion
dotnet_style_prefer_collection_expression = false:suggestion

[*.cs]
# ref: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options
Expand Down
65 changes: 2 additions & 63 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,63 +1,2 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
# Normalize line endings.
* text=lf
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ body:
render: csharp
placeholder: |
// example (put your own code here)
IEnumerable<EmaResult> results = quotes.GetEma(14);
IReadOnlyList<EmaResult> results = quotes.GetEma(14);
validations:
required: false
- type: textarea
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
updateAssemblyInfo: true
useConfigFile: true
configFilePath: gitversion.yml
configFilePath: src/gitversion.yml

- name: Compose version
id: compose
Expand Down Expand Up @@ -89,6 +89,7 @@ jobs:
with:
name: packages
path: NuGet
include-hidden-files: true

- name: Summary output
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

environment:
name: stockindicators.dev
url: https://dotnet.stockindicators.dev

steps:
- name: Checkout source
Expand All @@ -24,7 +25,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
working-directory: docs
ruby-version: 3.2
ruby-version: 3.3

- name: Define tag
id: tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Examples

on:
push:
branches: ["main"]
branches: ["main","v3"]
paths:
- docs/examples/**

pull_request:
branches: ["main"]
branches: ["main","v3"]
paths:
- docs/examples/**
- ".github/workflows/test-examples.yml"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-indicators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
dotnet-version: ["2.0.x", "6.x", "8.x"]
dotnet-version: ["6.x", "8.x"]

env:

Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/test-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
updateAssemblyInfo: true
useConfigFile: true
configFilePath: gitversion.yml
configFilePath: src/gitversion.yml

- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand All @@ -42,12 +42,29 @@ jobs:
--configuration Release
--property:ContinuousIntegrationBuild=true
- name: Benchmark indicators
- name: Test performance
working-directory: tests/performance
run: dotnet run -c Release

- name: Save test results
uses: actions/upload-artifact@v4
with:
name: test-summaries
path: tests/performance/BenchmarkDotNet.Artifacts/results

- name: Publish summary
working-directory: tests/performance/BenchmarkDotNet.Artifacts/results
run: |
echo "### Package version ${{ steps.gitversion.outputs.fullSemVer }}" >> $GITHUB_STEP_SUMMARY
cat Tests.Performance.IndicatorPerformance-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Series indicators" >> $GITHUB_STEP_SUMMARY
cat Performance.SeriesIndicators-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Stream indicators (with Quote caching)" >> $GITHUB_STEP_SUMMARY
cat Performance.StreamIndicators-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Incremental indicators (with buffer)" >> $GITHUB_STEP_SUMMARY
cat Performance.Incrementals-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Utilities" >> $GITHUB_STEP_SUMMARY
cat Performance.Utility-report-github.md >> $GITHUB_STEP_SUMMARY
4 changes: 3 additions & 1 deletion .github/workflows/test-website-a11y.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Website

on:
push:
branches: ["v3"]
pull_request:
branches: [main]
branches: ["main"]
paths:
- 'docs/**'
- ".github/workflows/test-website-a11y.yml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-website-links.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Website

on:
push:
branches: ["v3"]
pull_request:
branches: [main]
branches: ["main"]
paths:
- 'docs/**'
- ".github/workflows/test-website-links.yml"
Expand Down
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ $tf/
# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
# ReSharper IDE extension
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
*.DotSettings

# JustCode is a .NET coding add-in
# JustCode IDE extension
.JustCode

# TeamCity is a build add-in
Expand Down Expand Up @@ -218,7 +219,7 @@ ClientBin/
*.publishsettings
orleans.codegen.cs

# Including strong name files can present a security risk
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk

Expand Down Expand Up @@ -314,7 +315,7 @@ __pycache__/
# OpenCover UI analysis results
OpenCover/

# Azure Stream Analytics local run output
# Azure Stream Analytics local run output
ASALocalRun/

# MSBuild Binary and Structured Log
Expand All @@ -323,11 +324,11 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser

# MFractors (Xamarin productivity tool) working folder
# MFractors (Xamarin productivity tool) working folder
.mfractor/

# Jekyll site
_site/

# zip artifacts
.DS_Store
.DS_Store
9 changes: 3 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// markdown settings
"markdownlint.config": {
"MD033": false, // no-inline-html
"MD025": false // single-title/single-h1 --> fails with front-matter
"MD025": false // single-title/single-h1 --> fails with front-matter
},
// dictionary exceptions
"cSpell.words": [
Expand Down Expand Up @@ -193,8 +193,5 @@
"pivottrend",
"trendline",
"webp"
],
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///c%3A/Users/daves/Repos/Forks/Stock.Indicators/daveskender/.github/workflows/build.yml"
}
}
]
}
9 changes: 7 additions & 2 deletions Stock.Indicators.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Configuration", "Configurat
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
gitversion.yml = gitversion.yml
src\gitversion.yml = src\gitversion.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Indicators", "src\Indicators.csproj", "{8D0F1781-EDA3-4C51-B05D-D33FF1156E49}"
Expand All @@ -19,13 +19,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Other", "tests\other\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Performance", "tests\performance\Tests.Performance.csproj", "{3BD4837B-D197-41FD-A286-A3256D0770E1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Observe.Streaming", "tests\observe\Observe.Streaming.csproj", "{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test.Application", "tests\application\Test.Application.csproj", "{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}"
ProjectSection(ProjectDependencies) = postProject
{11CD6C7E-871F-4903-AEAD-58E034C6521D} = {11CD6C7E-871F-4903-AEAD-58E034C6521D}
{8D0F1781-EDA3-4C51-B05D-D33FF1156E49} = {8D0F1781-EDA3-4C51-B05D-D33FF1156E49}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.Integration", "tests\Tests.Integration\Tests.Integration.csproj", "{16B980BD-8ACF-4E71-929B-120ED4BAF998}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test.Simulation", "tests\simulate\Test.Simulation.csproj", "{9C9045D2-9928-41F8-97FC-ECCBDD3B9868}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -57,6 +58,10 @@ Global
{16B980BD-8ACF-4E71-929B-120ED4BAF998}.Debug|Any CPU.Build.0 = Debug|Any CPU
{16B980BD-8ACF-4E71-929B-120ED4BAF998}.Release|Any CPU.ActiveCfg = Release|Any CPU
{16B980BD-8ACF-4E71-929B-120ED4BAF998}.Release|Any CPU.Build.0 = Release|Any CPU
{9C9045D2-9928-41F8-97FC-ECCBDD3B9868}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9C9045D2-9928-41F8-97FC-ECCBDD3B9868}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9C9045D2-9928-41F8-97FC-ECCBDD3B9868}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9C9045D2-9928-41F8-97FC-ECCBDD3B9868}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 4 additions & 6 deletions docs/GemFile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
source 'https://rubygems.org'

gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine', tag: 'v1.2.7'
gem 'wdm', '>= 0.1.1' if Gem.win_platform? # windows compatibilty pack
gem 'faraday-retry'
# local dev: bundle exec jekyll serve -o -l

# jekyll plugins
# local dev: bundle exec jekyll serve
group :jekyll_plugins do
gem 'github-pages'
gem "jekyll-github-metadata"
Expand All @@ -16,4 +12,6 @@ group :jekyll_plugins do
gem 'jekyll-minifier'
end

gem "webrick" # needed for ruby > v3.0
gem 'wdm', '>= 0.2.0' if Gem.win_platform? # windows compatibilty pack
gem 'webrick' # needed for ruby > v3.0
gem 'faraday' # reload/retry on file changes
Loading

0 comments on commit d4f54ff

Please sign in to comment.