Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,20 @@ jobs:
shell: pwsh
run: |
echo "RavenDBSingleNodeUrl = $($Env:RavenDBSingleNodeUrl)"
if ( ($Env:RavenDBSingleNodeUrl -le 0) -and ((${{ matrix.cluster-type.label }} -eq "Single") -or (${{ matrix.cluster-type.label }} -eq "Both") ) ) {
$clusterType = '${{ matrix.cluster-type.label }}'
echo "ClusterType = $clusterType"
if ([string]::IsNullOrWhiteSpace($Env:RavenDBSingleNodeUrl) -and ($clusterType -in @('Single','Both'))) {
throw "Environment variable 'RavenDBSingleNodeUrl' not set."
}
echo "CommaSeparatedRavenClusterUrls = $($Env:CommaSeparatedRavenClusterUrls)"
if ( ($Env:CommaSeparatedRavenClusterUrls -le 0) -and ((${{ matrix.cluster-type.label }} -eq "Cluster") -or (${{ matrix.cluster-type.label }} -eq "Both") ) ) {
if ([string]::IsNullOrWhiteSpace($Env:CommaSeparatedRavenClusterUrls) -and ($clusterType -in @('Cluster','Both'))) {
throw "Environment variable 'CommaSeparatedRavenClusterUrls' not set."
}
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build src --configuration Release
- name: Run tests
uses: Particular/[email protected]
65 changes: 64 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,67 @@ node_modules/

# dotenv environment variables file
.env
.env.*
.env.test

### VisualStudio ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.json.lock
*.nuget.targets
*.lock.json
*.userosscache
*.sln.docstates
.vs/
local.settings.json

# mac temp file ignore
.DS_Store

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Roslyn cache directories
*.ide/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# NCrunch
_NCrunch_*
.*crunch*.local.xml

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

src/scaffolding.config

# Approval tests temp file
*.received.*

# JetBrains Rider
.idea/
*.sln.iml

# Visual Studio Code
.vscode
22 changes: 0 additions & 22 deletions clusternodes-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,6 @@ services:
networks:
cluster_network:
ipv4_address: 172.29.1.3
clustersetup:
container_name: clustersetup
image: mcr.microsoft.com/powershell:latest
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./setup_cluster.ps1:/var/ravendb/setup_cluster.ps1
entrypoint:
[
"pwsh",
"-command",
"&./var/ravendb/setup_cluster.ps1",
"'${LICENSE}'",
"host.docker.internal",
]
restart: "no"
depends_on:
- leader
- follower1
- follower2
networks:
- cluster_network
networks:
cluster_network:
ipam:
Expand Down
Loading
Loading