Created tests for the core module

This commit is contained in:
2025-01-18 16:01:35 +01:00
parent a5062ec581
commit afe8a41f6c
20 changed files with 1097 additions and 26 deletions

39
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,39 @@
image: mcr.microsoft.com/dotnet/sdk:9.0
stages:
- build
- test
- publish
before_script:
- echo "Setting up environment"
- 'dotnet --version'
build:
stage: build
script:
- dotnet restore
- dotnet build --configuration Release --no-restore
artifacts:
paths:
- "**/bin/Release"
expire_in: 10 minutes
test:
stage: test
script:
- dotnet test --verbosity normal
dependencies:
- build
publish:
stage: publish
script:
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
- dotnet pack -c Release -o . /p:Version=$VERSION
- for nupkg in *.nupkg; do dotnet nuget push $nupkg -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json; done
only:
- tags
dependencies:
- build
- test