Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d3dbd6f
forgot include
RMotive Jul 27, 2026
77d7442
Issue #41 - Adding async support for testing methods
jr110 Jul 28, 2026
33f3fd5
Issue #44 - Adding get method in [TestingStoreManager]
jr110 Jul 30, 2026
74e8a47
removing unnecesary sync methods in csm database testing
jr110 Jul 30, 2026
bfeb7c3
pull dev changes
jr110 Oct 3, 2026
c3eed14
testing methods optimizations
jr110 Oct 3, 2026
e934c8d
Summary definitions changes
jr110 Oct 4, 2026
99d09a6
Merge pull request #45 from Cosmos-CSM/dev@issue_41_43
RMotive Oct 4, 2026
3f6fc83
file structuring
RMotive Oct 4, 2026
4dd9ad7
organizing solution
RMotive Oct 5, 2026
fcad98e
Checking project adjustments and content
RMotive Oct 6, 2026
1547493
testing and main project building
RMotive Oct 6, 2026
81437fb
integration tests added pending to check
RMotive Oct 6, 2026
2d78a1c
structuring multi providers
RMotive Oct 13, 2026
2874f86
finishing standarization and ready to go first version
RMotive Oct 16, 2026
cc39754
added unit tests project, correected ci workflow
RMotive Oct 16, 2026
fbcc3c3
updating CI workflow
RMotive Oct 16, 2026
5fdd0a2
fixing CI
RMotive Oct 16, 2026
ddf89b7
updating cd workflows
RMotive Oct 17, 2026
9ff5126
pusing eol validation
RMotive Oct 17, 2026
7fb7b54
trying something else
RMotive Oct 17, 2026
69331f6
adding git attributes
RMotive Oct 17, 2026
68152a6
checking now
RMotive Oct 17, 2026
1305b52
changing approach
RMotive Oct 17, 2026
c9e97f4
applying checks
RMotive Oct 17, 2026
550a46d
trying again
RMotive Oct 17, 2026
53d54dc
updating workflow
RMotive Oct 17, 2026
ac2b368
aother update
RMotive Oct 17, 2026
5c5e6ee
another try
RMotive Oct 17, 2026
9cc6b48
last try
RMotive Oct 17, 2026
a60747e
adding nuget source
RMotive Oct 17, 2026
8a74e3b
Merge pull request #47 from Cosmos-CSM/46-standarize-repository
RMotive Oct 17, 2026
bda649d
removing cd workflows
RMotive Oct 17, 2026
272ae08
Merge branch 'main' into dev
RMotive Oct 17, 2026
ec1741c
adding package metadata and bump checker
RMotive Oct 17, 2026
a98406b
Merge branch 'dev' of https://github.com/Cosmos-CSM/fe_csharp_databas…
RMotive Oct 17, 2026
c24f228
Merge branch 'main' into dev
RMotive Oct 17, 2026
a4f3719
testing workflow to auto-generate release docs
RMotive Oct 19, 2026
42faf8b
corrected a workflow var
RMotive Oct 19, 2026
c9962a2
trying single line approach
RMotive Oct 19, 2026
d8f3654
trying another apporach
RMotive Oct 19, 2026
1502808
testing new version
RMotive Oct 19, 2026
efac5dc
fixed syntax error
RMotive Oct 19, 2026
bcc0f09
fixed syntax
RMotive Oct 19, 2026
5968d63
fixing arguments
RMotive Oct 19, 2026
136cd21
fixed all syntax
RMotive Oct 19, 2026
44317d2
added message
RMotive Oct 19, 2026
1f34a10
fixed ident
RMotive Oct 19, 2026
8284a77
Generated vdocs.
invalid-email-address Oct 19, 2026
5feda39
Generated vdocs.
invalid-email-address Oct 19, 2026
e00420d
Generated vdocs.
invalid-email-address Oct 19, 2026
9d58b94
adding a branch check
RMotive Oct 19, 2026
50b0378
Merge branch 'vbump_0.0.1-beta' of https://github.com/Cosmos-CSM/fe_c…
RMotive Oct 19, 2026
9f77020
fixing error
RMotive Oct 19, 2026
996128c
fixing version check
RMotive Oct 19, 2026
e35fa6f
Generated vdocs.
invalid-email-address Oct 19, 2026
1e0af6f
Generated vdocs.
invalid-email-address Oct 19, 2026
25b5bec
Generated vdocs.
invalid-email-address Oct 19, 2026
4aa3c09
preventing looping
RMotive Oct 19, 2026
4d35d66
Merge branch 'vbump_0.0.1-beta' of https://github.com/Cosmos-CSM/fe_c…
RMotive Oct 19, 2026
8c10362
Generated vdocs.
invalid-email-address Oct 19, 2026
1fcab9f
trying new release generation
RMotive Oct 19, 2026
45640b6
Merge branch 'vbump_0.0.1-beta' of https://github.com/Cosmos-CSM/fe_c…
RMotive Oct 19, 2026
98ac6f4
fixing generation
RMotive Oct 19, 2026
66e709d
fixed token
RMotive Oct 19, 2026
e9cb81f
added publisihment
RMotive Oct 19, 2026
2254872
Generated vdocs.
invalid-email-address Oct 19, 2026
cbfa8de
pushed removing use of changelog neither release- notes
RMotive Oct 19, 2026
38fb683
Merge branch 'vbump_0.0.1-beta' of https://github.com/Cosmos-CSM/fe_c…
RMotive Oct 19, 2026
3d7c179
removed and standarized csproj
RMotive Oct 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=crlf
119 changes: 119 additions & 0 deletions .github/workflows/cd-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: CD 1

on:
workflow_dispatch:

pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize

permissions:
contents: write

jobs:

validate-source:
name: Validate Source Branch
runs-on: ubuntu-latest

steps:
- name: Prevent Sources
run: |
set -euo pipefail
HEAD_REF="${{ github.head_ref }}"
echo "Head Branch: $HEAD_REF"

if [ "$HEAD_REF" = "dev" ]; then
echo "Cannot merge into main from dev branch"
exit 1
fi

if [[ "$HEAD_REF" =~ ^vbump_[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9._-]+)?$ ]]; then
echo "Name matches version bump"
exit 0
else
echo "Wrong source. Expected: vbump_{version}"
exit 1
fi

compare-versions:
needs: validate-source
name: Compare Versions
runs-on: ubuntu-latest
outputs:
version: ${{ steps.package_metadata.outputs.version }}
packages: ${{ steps.package_metadata.outputs.packages }}

steps:
- name: CheckOut Base
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}
path: base

- name: CheckOut Head
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
path: head

- name: Read Base version
id: base_version
run: |
VERSION=$(jq -r '.version' base/csmpackage.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Read Head version
id: head_version
run: |
VERSION=$(jq -r '.version' head/csmpackage.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Compare versions
run: |
set -euo pipefail

BASE="${{ steps.base_version.outputs.version }}"
HEAD="${{ steps.head_version.outputs.version }}"
BRANCH="${{ github.head_ref }}"
REGEX='^vbump[_-]([0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z._-]+)?(\+[0-9A-Za-z._-]+)?)$'

echo "Base version: $BASE"
echo "Head version: $HEAD"
echo "Head Branch: $BRANCH"

if [ "$BASE" = "$HEAD" ]; then
echo "Package metadata version isn't bumped"
exit 1
fi

if [[ $BRANCH =~ $REGEX ]]; then
BRANCH_VER="${BASH_REMATCH[1]}"
echo "Extracted version from branch: $BRANCH_VER"
else
echo "Branch name does not match required pattern: vbump_{version} or vbump-{version}"
echo "Examples: vbump_1.2.3, vbump-1.2.3-alpha, vbump_1.2.3+build.1"
exit 1
fi

if [ "$BRANCH_VER" = "$HEAD" ]; then
echo "Version match"
else
echo "Version mismatch: branch has '$BRANCH_VER' but metadata is '$HEAD'"
exit 1
fi

echo "Versions bumped correctly"

- name: Expose Package Metadata
id: package_metadata
run: |
VERSION=$(jq -r '.version' head/csmpackage.json)
PACKAGES_JSON=$(jq -c '.packages' head/csmpackage.json)

printf '%s\n' "version=$VERSION" >> $GITHUB_OUTPUT
printf '%s\n' "packages=$PACKAGES_JSON" >> $GITHUB_OUTPUT
133 changes: 133 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: CI

on:
workflow_dispatch:

pull_request:
branches: [dev, main]
types: [opened, reopened, synchronize]

jobs:
style_analyze:
name: Code Analyze
runs-on: ubuntu-latest

env:
WDIR: csharp_database_extension

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

- name: 🔑 Configure NuGet to use GitHub Packages
env:
NUGET_AUTH_TOKEN: ${{ secrets.PUBLISH_PAT }}
run: |
dotnet nuget add source \
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
--name "github" \
--username ${{ github.actor }} \
--password "$NUGET_AUTH_TOKEN" \
--store-password-in-clear-text

- name: ⚙️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Formatting style
working-directory: ${{ env.WDIR }}
run: dotnet format style --verify-no-changes

- name: Formatting analyzer
working-directory: ${{ env.WDIR }}
run: dotnet format analyzers --verify-no-changes

unit_testing:
name: Unit Testing
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

env:
WDIR: csharp_database_extension
TEST_PROJECT: "Unit Tests/Unit Tests.csproj"

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

- name: Configure NuGet (GitHub Packages)
env:
NUGET_AUTH_TOKEN: ${{ secrets.PUBLISH_PAT }}
run: |
dotnet nuget add source \
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
--name github \
--username ${{ github.actor }} \
--password "$NUGET_AUTH_TOKEN" \
--store-password-in-clear-text

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

- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget-

- name: Restore dependencies
working-directory: ${{ env.WDIR }}
run: dotnet restore

- name: Build with analyzers
working-directory: ${{ env.WDIR }}
run: dotnet build --no-restore --configuration Release -warnaserror

- name: Run tests
working-directory: ${{ env.WDIR }}
run: dotnet test "$TEST_PROJECT" --no-build --configuration Release --verbosity normal

code_analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Configure NuGet (GitHub Packages)
env:
NUGET_AUTH_TOKEN: ${{ secrets.PUBLISH_PAT }}
run: |
dotnet nuget add source \
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
--name github \
--username ${{ github.actor }} \
--password "$NUGET_AUTH_TOKEN" \
--store-password-in-clear-text

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

- name: Dependency Review (security)
uses: actions/dependency-review-action@v4
23 changes: 0 additions & 23 deletions CSM Database Core/Abstractions/Interfaces/IDatabase.cs

This file was deleted.

Loading
Loading